diff options
author | Keith Packard <keithp@keithp.com> | 2013-04-30 20:25:20 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-04-30 20:25:20 -0700 |
commit | 1b2b75631880e54ed9979cb3106fdfdeba4f6e44 (patch) | |
tree | 0f5ef2ece64ff5e0295f17948b59bc261ee78476 | |
parent | 38d7a68d9edf1e8ea6e7ed72b41705a2a5882435 (diff) |
altoslib: Update GPS state even if new state is unlocked
Otherwise, we can't see fine GPS details while GPS is unlocked, and
that's annoying
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | altoslib/AltosState.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/altoslib/AltosState.java b/altoslib/AltosState.java index a3b9a8c0..ccbe498d 100644 --- a/altoslib/AltosState.java +++ b/altoslib/AltosState.java @@ -252,8 +252,7 @@ public class AltosState { range = -1; gps_height = 0; if (data.gps != null) { - if (gps == null || !gps.locked || data.gps.locked) - gps = data.gps; + gps = data.gps; if (ngps > 0 && gps.locked) { double h = height; |