altoslib: Invalidate GPS new data bit when updating state
authorKeith Packard <keithp@keithp.com>
Tue, 5 Mar 2013 03:44:30 +0000 (19:44 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 5 Mar 2013 03:44:30 +0000 (19:44 -0800)
Somehow this line got lost when the GPS ground altitude fix was made.

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

index 32d02f21d1923ba934cb756e7d013196aac3ec6d..5598a60353b9af204dd78634de0200c25d7eeb1c 100644 (file)
@@ -205,6 +205,8 @@ public class AltosState {
                                pad_alt = ground_altitude;
                }
 
+               data.new_gps = false;
+
                gps_waiting = MIN_PAD_SAMPLES - npad;
                if (gps_waiting < 0)
                        gps_waiting = 0;