diff options
author | Gary E. Miller <gem@rellim.com> | 2015-03-18 23:50:32 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-03-18 23:50:32 -0700 |
commit | 5de2c44cafe46b704fad33a9a8180c803394b9f8 (patch) | |
tree | cffe5b66f04e08c1db8aba654ed117cf08f4bb78 /libgpsd_core.c | |
parent | 0f39093ba1d84d8af8888cc382ca84edc7aa2668 (diff) | |
download | gpsd-5de2c44cafe46b704fad33a9a8180c803394b9f8.tar.gz |
Fix UBX-MON-VER so we get u-blox version string.
gpsd sends a ton of strings to the GPS on change from NMEA -> UBX
mode. Most of it gets lost. So move version request later in
the initialization.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index e618650e..6811b663 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -331,6 +331,7 @@ void gpsd_init(struct gps_device_t *session, struct gps_context_t *context, /*@ +temptrans @*/ /*@ +mayaliasunique @*/ /*@ +mustfreeonly @*/ + memset( session->subtype, 0, sizeof( session->subtype)); gps_clear_fix(&session->gpsdata.fix); gps_clear_fix(&session->newdata); gps_clear_fix(&session->oldfix); |