projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38d7a68
)
altoslib: Update GPS state even if new state is unlocked
author
Keith Packard
<keithp@keithp.com>
Wed, 1 May 2013 03:25:20 +0000
(20:25 -0700)
committer
Keith Packard
<keithp@keithp.com>
Wed, 1 May 2013 03:25:20 +0000
(20:25 -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
patch
|
blob
|
history
diff --git
a/altoslib/AltosState.java
b/altoslib/AltosState.java
index a3b9a8c07efafdb54f889094c09e1b7ba6a505f9..ccbe498d5ca34dedaa3ee7be58512955f93e16d2 100644
(file)
--- 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;