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

@ -131,13 +131,16 @@ if __name__ == "__main__":
except:
print("Can't write command_count file!")
print("Command_count: ")
print(command_count)
print("\n/home/pi/CubeSatSim/config -" + mode)
system("/home/pi/CubeSatSim/config -" + mode)
print(command_count)
GPIO.output(txLed, 0)
GPIO.output(powerPin, 0)
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
print("Done")

Loading…
Cancel
Save

Powered by TurnKey Linux.