From 04e3e942a93893c281386691f6c02f89fe72a261 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 22 May 2025 15:59:34 -0400 Subject: [PATCH] Update dtmf_aprs_cc.py change from system to call --- dtmf_aprs_cc.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dtmf_aprs_cc.py b/dtmf_aprs_cc.py index 12d69af3..fc12206f 100644 --- a/dtmf_aprs_cc.py +++ b/dtmf_aprs_cc.py @@ -4,6 +4,8 @@ import RPi.GPIO as GPIO from RPi.GPIO import output from time import sleep import logging +from subprocess import call + logging.basicConfig(format='%(message)s') # logging.warning('CC-Warning!') @@ -261,11 +263,11 @@ if __name__ == "__main__": GPIO.output(txLed, 0) GPIO.output(powerPin, 0) - system("sudo systemctl stop rpitx") + call("sudo systemctl stop rpitx", shell=True) # system("sudo systemctl stop cubesatsim") print("\n/home/pi/CubeSatSim/config -" + mode) - system("/home/pi/CubeSatSim/config -" + mode) + call("/home/pi/CubeSatSim/config -" + mode, shell=True) change_mode = False