From 57ea8b9a65af87a23dfb3628fc8b4845586fe291 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 16 Jul 2024 08:30:50 -0400 Subject: [PATCH] Update dtmf_aprs_cc.py changed from print to echo for -o --- dtmf_aprs_cc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dtmf_aprs_cc.py b/dtmf_aprs_cc.py index c42d92d1..a4cf6e53 100644 --- a/dtmf_aprs_cc.py +++ b/dtmf_aprs_cc.py @@ -50,12 +50,12 @@ if __name__ == "__main__": try: f = open("/home/pi/CubeSatSim/beacon_off", "r") f.close() - print("Beacon is on, turning it OFF") + system("echo 'Beacon is on, turning it OFF'") system("touch /home/pi/CubeSatSim/beacon_off") except: - print("Beacon is off, turning it ON") - system("sudo rm /home/pi/CubeSatSim/beacon_off") - print("Restarting rpitx") + system("echo 'Beacon is off, turning it ON'") + system("sudo rm /home/pi/CubeSatSim/beacon_off > /dev/null 2>&1") + system("echo 'Restarting rpitx'") system("sudo systemctl restart rpitx") change_mode = False if (debug_mode == False) and (change_mode == True):