altos: print GPS state flags in GPS 'g' command
authorKeith Packard <keithp@keithp.com>
Thu, 26 Aug 2010 22:59:09 +0000 (15:59 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 26 Aug 2010 22:59:09 +0000 (15:59 -0700)
Having the GPS state information can help with GPS debugging.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_gps_skytraq.c

index ae8c7ef7cafb1980d5cb08ffd541eac66d2f596c..c822f7fab57bf2125922f3fac5263369d74dcaf2 100644 (file)
@@ -422,6 +422,7 @@ gps_dump(void) __reentrant
        printf ("Time: %02d:%02d:%02d\n", ao_gps_data.hour, ao_gps_data.minute, ao_gps_data.second);
        printf ("Lat/Lon: %ld %ld\n", ao_gps_data.latitude, ao_gps_data.longitude);
        printf ("Alt: %d\n", ao_gps_data.altitude);
+       printf ("Flags: 0x%x\n", ao_gps_data.flags);
        ao_mutex_put(&ao_gps_mutex);
 }