Merge remote branch 'aj/sitemap' into buttonbox
[fw/altos] / ao-tools / altosui / AltosSiteMap.java
index 5f5e30f0c0e33d6c1359646431d9181f0e727b4b..50177d4e84b9a564c16bc64349a58cfd33af3b46 100644 (file)
@@ -211,7 +211,7 @@ public class AltosSiteMap extends JScrollPane implements AltosFlightDisplay {
        boolean initialised = false;
        public void show(AltosState state, int crc_errors) {
                // if insufficient gps data, nothing to update
-               if (!state.gps_ready) {
+               if (state.gps == null || !state.gps.locked) {
                        if (state.pad_lat == 0 && state.pad_lon == 0)
                                return;
                        if (state.ngps < 3)
@@ -266,4 +266,3 @@ public class AltosSiteMap extends JScrollPane implements AltosFlightDisplay {
                setPreferredSize(new Dimension(500,200));
        }
 }
-