From a90e87ac061f279082da29e36c53d76ebfd453ca Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 16 Mar 2026 15:32:33 -0400 Subject: [PATCH] add !command_tx to stop pacsatsim --- transmit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/transmit.py b/transmit.py index 4127e8db..d299389c 100644 --- a/transmit.py +++ b/transmit.py @@ -324,8 +324,6 @@ if __name__ == "__main__": print("Can't open .mode file, defaulting to FSK") print("Mode is: ") print(mode) - if ( mode != "p"): - system("sudo systemctl stop pacsatsim") try: file = open("/home/pi/CubeSatSim/beacon_off") @@ -337,6 +335,9 @@ if __name__ == "__main__": print("Can't open beacon_off file, defaulting to False") print("Command_tx: ") print(command_tx) + + if (mode != "p") || (!command_tx): + system("sudo systemctl stop pacsatsim") try: file = open("/home/pi/CubeSatSim/command_count.txt", "r")