altoslib: When GPS disappears, set range and elevation to MISSING
authorKeith Packard <keithp@keithp.com>
Sat, 14 Jun 2014 21:34:59 +0000 (14:34 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 14 Jun 2014 21:34:59 +0000 (14:34 -0700)
Use MISSING instead of bogus values so that displayers can tell what
to do.

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

index d391dcfb2f2773c90ec4cb711c54aa7d97ea076d..b05cd3586061ad111d99084733f84865c360339e 100644 (file)
@@ -910,8 +910,8 @@ public class AltosState implements Cloneable {
        }
 
        void update_gps() {
-               elevation = 0;
-               range = -1;
+               elevation = AltosLib.MISSING;
+               range = AltosLib.MISSING;
 
                if (gps == null)
                        return;