diff options
| author | Keith Packard <keithp@keithp.com> | 2010-07-26 15:42:48 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2010-07-26 15:42:48 -0700 |
| commit | 005e2d6a7bb3b0546b0c1273296875621632ec6d (patch) | |
| tree | 9dc5c2a19f4ac216ce1fb1d6a2bd1053b98a969d /ao-tools/altosui/AltosGPS.java | |
| parent | c726d8f6eb861801d7543552beab6ee2c920c96f (diff) | |
Switch AltosUI to libaltos for device access
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosGPS.java')
| -rw-r--r-- | ao-tools/altosui/AltosGPS.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ao-tools/altosui/AltosGPS.java b/ao-tools/altosui/AltosGPS.java index c3b368e2..f8eb5f48 100644 --- a/ao-tools/altosui/AltosGPS.java +++ b/ao-tools/altosui/AltosGPS.java @@ -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; |
