Switch AltosUI to libaltos for device access
[fw/altos] / ao-tools / altosui / AltosGPS.java
index c3b368e26b47ce022f5e34068bf227e49d3bb7e1..f8eb5f4844150024244f3ef08211db8f75c62d9d 100644 (file)
@@ -90,6 +90,9 @@ public class AltosGPS {
                        gps_connected = true;
                        gps_time = new AltosGPSTime();
                        i++;
+               } else if ((words[i]).equals("not-connected")) {
+                       gps_time = new AltosGPSTime();
+                       i++;
                } else if (words.length >= 40) {
                        gps_locked = true;
                        gps_connected = true;
@@ -106,6 +109,7 @@ public class AltosGPS {
                        v_error = AltosParse.parse_int(AltosParse.strip_suffix(words[i++], "(verr)"));
                } else {
                        gps_time = new AltosGPSTime();
+                       i++;
                }
                AltosParse.word(words[i++], "SAT");
                int tracking_channels = 0;