From 6a6a5d0afa646564a9277ad3bd80c4225247a27b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 30 Apr 2013 20:25:20 -0700 Subject: [PATCH] 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 --- altoslib/AltosState.java | 3 +-- 1 file changed, 1 insertion(+), 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; -- 2.30.2