diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-01-11 13:54:57 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-01-11 13:54:57 -0500 |
commit | 6c4029a0676b15186a1da0d62695eb1dcb0a3383 (patch) | |
tree | aa245bfea8e5ba246c201e391064f71bbae0f59b /serial.c | |
parent | f844626b0ab579e15b42c565e16c52b0e5b2dd04 (diff) | |
parent | d90cc50f1ca50605dfdce88136135a307a1ceb3f (diff) | |
download | gpsd-6c4029a0676b15186a1da0d62695eb1dcb0a3383.tar.gz |
It really needs to be %04x in JSON escaping, otherwise we don't get fixed width.
Diffstat (limited to 'serial.c')
-rw-r--r-- | serial.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -312,11 +312,14 @@ void gpsd_set_speed(struct gps_device_t *session, /* * The device might need a wakeup string before it will send data. * If we don't know the device type, ship it every driver's wakeup - * in hopes it will respond. But not to USB, because shipping - * probe strings to unknown USB serial adaptors may spam devices - * that aren't GPSes at all and could become confused. + * in hopes it will respond. But not to USB or Bluetooth, because + * shipping probe strings to unknown USB serial adaptors or + * Bluetooth devices may spam devices that aren't GPSes at all and + * could become confused. */ - if (!session->context->readonly && session->sourcetype != source_usb) { + if (!session->context->readonly + && session->sourcetype != source_usb + && session->sourcetype != source_bluetooth) { if (isatty(session->gpsdata.gps_fd) != 0 && !session->context->readonly) { const struct gps_type_t **dp; |