summaryrefslogtreecommitdiff
path: root/aoview/aoview_state.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-07-18 01:47:34 -0700
committerKeith Packard <keithp@keithp.com>2009-07-18 01:47:34 -0700
commit8ddf3345afd8cbf638e81993633f7861d8dbca63 (patch)
tree7e4a2b019bfb6bb1f050e1c2aa23c929454560da /aoview/aoview_state.c
parentfbcb7b20fa701a6e534d38e307839466545668e3 (diff)
Don't report distance to rocket without valid GPS
When there's no valid GPS data, don't try to report the distance and bearing to the rocket after landing. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'aoview/aoview_state.c')
-rw-r--r--aoview/aoview_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aoview/aoview_state.c b/aoview/aoview_state.c
index 9852cabd..7efd33b0 100644
--- a/aoview/aoview_state.c
+++ b/aoview/aoview_state.c
@@ -251,7 +251,7 @@ aoview_state_timeout(gpointer data)
aoview_voice_speak("rocket landed safely\n");
else
aoview_voice_speak("rocket may have crashed\n");
- if (aostate.gps.gps_connected) {
+ if (aostate.gps_valid) {
aoview_voice_speak("rocket reported %s of pad distance %d meters\n",
aoview_compass_point(aostate.bearing),
(int) aostate.distance);