diff options
author | Keith Packard <keithp@keithp.com> | 2013-03-04 19:44:30 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-03-04 19:44:30 -0800 |
commit | afd2674261e128a0ecff8fbf5dd6a64196b026f6 (patch) | |
tree | 1214f89668a3e75c83b41528f942417c9e726714 /altoslib/AltosState.java | |
parent | 3605e97ee918b3f87e4c471906f708c3ea027eef (diff) |
altoslib: Invalidate GPS new data bit when updating state
Somehow this line got lost when the GPS ground altitude fix was made.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosState.java')
-rw-r--r-- | altoslib/AltosState.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/altoslib/AltosState.java b/altoslib/AltosState.java index 32d02f21..5598a603 100644 --- a/altoslib/AltosState.java +++ b/altoslib/AltosState.java @@ -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; |