From 5de2c44cafe46b704fad33a9a8180c803394b9f8 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Wed, 18 Mar 2015 23:50:32 -0700 Subject: 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. --- libgpsd_core.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libgpsd_core.c') 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); -- cgit v1.2.1