diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-12 02:54:04 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-12 02:54:04 -0500 |
commit | c36073c801eb2fd3f84e5e7e6253af6a5d671dc8 (patch) | |
tree | eee5079bf788c92231f297bef47cf443b4f4abd0 /drivers.c | |
parent | 9675e72c85748b4323b7a08fae59d5b09658f05f (diff) | |
download | gpsd-c36073c801eb2fd3f84e5e7e6253af6a5d671dc8.tar.gz |
We can now change baud rates on the GR601-W.
This required some unfortunate klugery because the GR601-W is a USB device
that nevertheless has port ID 1 in the u-blox CFG-PRT message (associated
with the primary USART) rather than port ID 3 which is what u-blox USB
would give it.
Diffstat (limited to 'drivers.c')
-rw-r--r-- | drivers.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -224,10 +224,10 @@ static void nmea_event_hook(struct gps_device_t *session, event_t event) #endif /* ASHTECH_ENABLE */ #ifdef UBLOX_ENABLE case 7: - /* probe for UBX -- query software version */ + /* probe for UBX -- query port configuration */ gpsd_report(session->context->debug, LOG_PROG, "=> Probing for UBX\n"); - (void)ubx_write(session, 0x0au, 0x04, NULL, 0); + (void)ubx_write(session, 0x06, 0x00, NULL, 0); break; #endif /* UBLOX_ENABLE */ #ifdef MTK3301_ENABLE |