projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AltosSiteMap: never accept 0,0 as lat/long
[fw/altos]
/
ao-tools
/
altosui
/
AltosSiteMap.java
diff --git
a/ao-tools/altosui/AltosSiteMap.java
b/ao-tools/altosui/AltosSiteMap.java
index 5e34dd49477115b12514e80be42184feb5939124..0375128e1bfec7b014dcca63fea1b0f0395ede93 100644
(file)
--- a/
ao-tools/altosui/AltosSiteMap.java
+++ b/
ao-tools/altosui/AltosSiteMap.java
@@
-228,9
+228,9
@@
public class AltosSiteMap extends JScrollPane implements AltosFlightDisplay {
// if insufficient gps data, nothing to update
if (state.gps == null)
return;
// if insufficient gps data, nothing to update
if (state.gps == null)
return;
+ if (state.pad_lat == 0 && state.pad_lon == 0)
+ return;
if (!state.gps.locked) {
if (!state.gps.locked) {
- if (state.pad_lat == 0 && state.pad_lon == 0)
- return;
if (state.gps.nsat < 4)
return;
}
if (state.gps.nsat < 4)
return;
}