summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-30 20:25:20 -0700
committerKeith Packard <keithp@keithp.com>2013-05-07 20:08:01 -0700
commit6a6a5d0afa646564a9277ad3bd80c4225247a27b (patch)
tree7191491e1fa79415922001c23600281dd67f9b03
parent1e9b405e939136d25d937334d1f14f06c7d6127b (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.java3
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;