Update dtmf_aprs_cc.py change from system to call

fc-sub
Alan Johnston 7 months ago committed by GitHub
parent 2f27464ca0
commit 04e3e942a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4,6 +4,8 @@ import RPi.GPIO as GPIO
from RPi.GPIO import output from RPi.GPIO import output
from time import sleep from time import sleep
import logging import logging
from subprocess import call
logging.basicConfig(format='%(message)s') logging.basicConfig(format='%(message)s')
# logging.warning('CC-Warning!') # logging.warning('CC-Warning!')
@ -261,11 +263,11 @@ if __name__ == "__main__":
GPIO.output(txLed, 0) GPIO.output(txLed, 0)
GPIO.output(powerPin, 0) GPIO.output(powerPin, 0)
system("sudo systemctl stop rpitx") call("sudo systemctl stop rpitx", shell=True)
# system("sudo systemctl stop cubesatsim") # system("sudo systemctl stop cubesatsim")
print("\n/home/pi/CubeSatSim/config -" + mode) print("\n/home/pi/CubeSatSim/config -" + mode)
system("/home/pi/CubeSatSim/config -" + mode) call("/home/pi/CubeSatSim/config -" + mode, shell=True)
change_mode = False change_mode = False

Loading…
Cancel
Save

Powered by TurnKey Linux.