altoslib: Initialize GPS data to MISSING for Monitor Idle mode
authorKeith Packard <keithp@keithp.com>
Sat, 7 Feb 2015 07:50:49 +0000 (23:50 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 7 Feb 2015 07:50:49 +0000 (23:50 -0800)
Make sure any un-set values are flagged correctly for the Monitor Idle
UI by using the init() method.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosGPS.java

index 285b5b45aca691e916ec000be19a4feff3f2a0b6..9d84e4b238fde4331999539fb8be9b1668dc8511 100644 (file)
@@ -378,6 +378,7 @@ public class AltosGPS implements Cloneable, Serializable {
 
        public AltosGPS (AltosLink link, AltosConfigData config_data) throws TimeoutException, InterruptedException {
                boolean says_done = config_data.compare_version("1.0") >= 0;
+               init();
                link.printf("g\n");
                for (;;) {
                        String line = link.get_reply_no_dialog(5000);