From 68885a3b867d309fb5a8cac346099b99087b3250 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 12 Jul 2021 16:25:17 -0400 Subject: [PATCH] added return value --- groundstation/loc-add-foxtelem.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/groundstation/loc-add-foxtelem.py b/groundstation/loc-add-foxtelem.py index ff6fd5a4..51193772 100644 --- a/groundstation/loc-add-foxtelem.py +++ b/groundstation/loc-add-foxtelem.py @@ -9,6 +9,7 @@ import re latitude = 0 longitude = 0 grid = "" +return_value = 0 print("\nIn order to track the satellites as they fly over your location and upload your satellite telemetry data to the AMSAT servers, we need to know your location") print("\nYou can enter:\n") @@ -87,6 +88,8 @@ if ((latitude != 0) and (longitude != 0) or grid): system(longSedStr) print("\nFoxTelem configuration updated with your latitude and longitude") + + return_value = 1 else: latSedStr = 'sed -i "s/latitude=.*/latitude=' + str(latitude) + '/g" /home/pi/FoxTelemetryData/FoxTelem.properties' @@ -103,7 +106,8 @@ if ((latitude != 0) and (longitude != 0) or grid): system(gridSedStr) print("\nFoxTelem configuration updated with your maidenhead grid square") - + + return_value = 1 alt = input("\nType your altitude in integer meters: ") try: @@ -118,3 +122,4 @@ if ((latitude != 0) and (longitude != 0) or grid): except ValueError: print("Not an integer!") +return return_value