altoslib: Update GPS state even if new state is unlocked
[fw/altos] / 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;