From 3b637096f8072e9da66f76a99a016837ad44d184 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Tue, 23 Apr 2019 13:16:08 -0700 Subject: driver_ubx: Delete reset on exit. The reset caused USB to reenumerate, sometimes getting a new device name. Bad. --- driver_ubx.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'driver_ubx.c') 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... + */ } } -- cgit v1.2.1