From 8ddf3345afd8cbf638e81993633f7861d8dbca63 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 18 Jul 2009 01:47:34 -0700 Subject: [PATCH] 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 --- aoview/aoview_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2