Update aprs_in.py stop rpitx and CubeSatSim before change mode

pull/323/head
Alan Johnston 1 year ago committed by GitHub
parent 5ca157712a
commit c944be6113
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -133,11 +133,14 @@ if __name__ == "__main__":
print("Command_count: ") print("Command_count: ")
print(command_count) print(command_count)
print("\n/home/pi/CubeSatSim/config -" + mode)
system("/home/pi/CubeSatSim/config -" + mode)
GPIO.output(txLed, 0) GPIO.output(txLed, 0)
GPIO.output(powerPin, 0) GPIO.output(powerPin, 0)
system("sudo systemctl stop rpitx") system("sudo systemctl stop rpitx")
system("sudo systemctl stop cubesatsim")
print("\n/home/pi/CubeSatSim/config -" + mode)
system("/home/pi/CubeSatSim/config -" + mode)
change_mode = False change_mode = False
print("Done") print("Done")

Loading…
Cancel
Save

Powered by TurnKey Linux.