Report current gps nsat, not last locked nsat
authorKeith Packard <keithp@keithp.com>
Sat, 3 Apr 2010 06:05:40 +0000 (23:05 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 3 Apr 2010 06:05:40 +0000 (23:05 -0700)
ao-tools/altosui/AltosUI.java

index 599c5ae..2cf326f 100644 (file)
@@ -301,7 +301,7 @@ public class AltosUI extends JFrame {
                                info_add_row(1, "GPS", " unlocked");
                        else
                                info_add_row(1, "GPS", "  missing");
-                       info_add_row(1, "Satellites", "%6d", state.gps.nsat);
+                       info_add_row(1, "Satellites", "%6d", state.data.gps.nsat);
                        info_add_deg(1, "Latitude", state.gps.lat, 'N', 'S');
                        info_add_deg(1, "Longitude", state.gps.lon, 'E', 'W');
                        info_add_row(1, "GPS altitude", "%6d", state.gps.alt);