Subversion Repositories public

Rev

Rev 142 | Rev 214 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 142 Rev 150
Line 108... Line 108...
108
char hv0[1024];
108
char hv0[1024];
109
 
109
 
110
	if (method && garmin->usb.fd == -1)
110
	if (method && garmin->usb.fd == -1)
111
	{
111
	{
112
	   /* check for USB serial drivers -- very Linux-specific */
112
	   /* check for USB serial drivers -- very Linux-specific */
113
	   if (access("/sys/module/garmin_gps", R_OK) != 0)
113
/*	   if (access("/sys/module/garmin_gps", R_OK) != 0)
114
	   {
114
	   {
115
	      garmin_queue_error("garmin_gps not active!", err_error);
115
	      garmin_queue_error("garmin_gps not active!", err_error);
116
	      return 0;
116
	      return 0;
117
	   }
117
	   }
118
 
118
*/
119
	   if ((garmin->usb.fd = open(USBdevice, O_RDWR | O_NOCTTY | O_NONBLOCK)) == -1)
119
	   if ((garmin->usb.fd = open(USBdevice, O_RDWR | O_NOCTTY | O_NONBLOCK)) == -1)
120
	      return 0;
120
	      return 0;
121
 
121
 
122
	   if (isatty(garmin->usb.fd))
122
	   if (isatty(garmin->usb.fd))
123
	   {
123
	   {