From: Keith Packard Date: Wed, 1 May 2013 03:25:20 +0000 (-0700) Subject: altoslib: Update GPS state even if new state is unlocked X-Git-Tag: 1.2.1~65 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=6a6a5d0afa646564a9277ad3bd80c4225247a27b 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 --- 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;