summaryrefslogtreecommitdiff
path: root/driver_proto.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-01-09 16:56:32 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-01-09 16:56:32 -0500
commit1ffbfb9e605eea44a00e832dc768a3b99c1a18fb (patch)
treea56b50757889ff46eed677ba5277b6d185ab35bb /driver_proto.c
parent6289bbe267435d3d754af0be6e7e43d3383b2bdd (diff)
downloadgpsd-1ffbfb9e605eea44a00e832dc768a3b99c1a18fb.tar.gz
We longer send wakeup probes to USB devices.
The two known cases where wakeup probes are indispencible (TNT and AC12) are serial devices. Therefore, by simply suppressing wakeup emission on USB sources, we avoid both spamming USB devices and requiring special setup with gpsctl.
Diffstat (limited to 'driver_proto.c')
-rw-r--r--driver_proto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/driver_proto.c b/driver_proto.c
index 33470304..c37e2a61 100644
--- a/driver_proto.c
+++ b/driver_proto.c
@@ -370,10 +370,10 @@ static void _proto__event_hook(struct gps_device_t *session, event_t event)
{
if (event == event_wakeup) {
/*
- * Code to make the device ready to communicate. This is
- * run every time we are about to try a different baud
- * rate in the autobaud sequence. Only needed if the
- * device is in some kind of sleeping state.
+ * Code to make the device ready to communicate. Only needed if the
+ * device is in some kind of sleeping state, and only shipped to
+ * RS232C (so that gpsd won't send strings to unidentified USB devices)
+ * that might not be GPSes at all.
*/
}
if (event == event_identified) {