altoslib: Update GPS state even if new state is unlocked
authorKeith Packard <keithp@keithp.com>
Wed, 1 May 2013 03:25:20 +0000 (20:25 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 8 May 2013 03:08:01 +0000 (20:08 -0700)
Otherwise, we can't see fine GPS details while GPS is unlocked, and
that's annoying

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

index a3b9a8c07efafdb54f889094c09e1b7ba6a505f9..ccbe498d5ca34dedaa3ee7be58512955f93e16d2 100644 (file)
@@ -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;