summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-12 02:54:04 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-12 02:54:04 -0500
commitc36073c801eb2fd3f84e5e7e6253af6a5d671dc8 (patch)
treeeee5079bf788c92231f297bef47cf443b4f4abd0 /drivers.c
parent9675e72c85748b4323b7a08fae59d5b09658f05f (diff)
downloadgpsd-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers.c b/drivers.c
index db2f288e..f38d2569 100644
--- a/drivers.c
+++ b/drivers.c
@@ -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