diff options
author | Gary E. Miller <gem@rellim.com> | 2019-04-23 13:16:08 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-04-23 13:16:08 -0700 |
commit | 3b637096f8072e9da66f76a99a016837ad44d184 (patch) | |
tree | 38df7eabf493ad07c5bad660e2d7dc8661709dd4 /driver_ubx.c | |
parent | 9f2969c6db22f261ce72f142e2d470585d1e7b60 (diff) | |
download | gpsd-3b637096f8072e9da66f76a99a016837ad44d184.tar.gz |
driver_ubx: Delete reset on exit.
The reset caused USB to reenumerate, sometimes getting a new
device name. Bad.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r-- | driver_ubx.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/driver_ubx.c b/driver_ubx.c index 1956e636..5295f014 100644 --- a/driver_ubx.c +++ b/driver_ubx.c @@ -1817,16 +1817,11 @@ static void ubx_event_hook(struct gps_device_t *session, event_t event) } #endif /* RECONFIGURE_ENABLE */ } else if (event == event_deactivate) { - unsigned char msg[4] = { - 0x00, 0x00, /* hotstart */ - 0x01, /* controlled software reset */ - 0x00 - }; /* reserved */ - - gpsd_log(&session->context->errout, LOG_DATA, "UBX revert\n"); - - /* Reverting all in one fast and reliable reset */ - (void)ubx_write(session, 0x06, 0x04, msg, 4); /* UBX-CFG-RST */ + /* There used to be a hotstart/reset here. + * That caused u-blox USB to re-enumerate. + * Sometimes to a new device name. + * Bad. Don't do that anymore... + */ } } |