blob: e306fa9df09b595aecdc427b6686d7bdc14f70ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
--- gnome-pilot-0.1.70/capplet/util.c.usb 2002-09-16 19:08:08.000000000 +0200
+++ gnome-pilot-0.1.70/capplet/util.c 2002-12-03 17:14:38.000000000 +0100
@@ -642,6 +642,7 @@
return ;
}
} else if (device->type == PILOT_DEVICE_USB_VISOR) {
+/* don't check anything, it could be no device if we are using devfs
struct stat sb;
if (stat (device->port, &sb) != 0) {
@@ -660,7 +661,7 @@
error_dialog (str);
g_free (str);
return ;
- }
+ }*/
}
}
--- gnome-pilot-0.1.70/gpilotd/gpilotd.c.usb 2002-12-03 16:08:24.000000000 +0100
+++ gnome-pilot-0.1.70/gpilotd/gpilotd.c 2002-12-03 17:29:24.000000000 +0100
@@ -851,6 +851,7 @@
visor_devices_in (GIOChannel *io_channel,
GIOCondition condition,
GPilotContext *context) {
+ static firstime = TRUE;
GPilotDevice *device;
GList *l;
int i;
@@ -862,11 +863,16 @@
g_assert (context != NULL);
- sleep (2);
+ sleep (10);
if (context->paused)
return FALSE;
+ if (!firstime )
+ sleep (10);
+ else
+ firstime = FALSE;
+
/* Check /proc/bus/usb/devices for a usb device */
f = fopen ("/proc/bus/usb/devices", "r");
|