From 30fabfac7fb0ab1d5b19c53b744ca1104448c858 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 18 Aug 2023 16:09:06 -0400 Subject: [PATCH] Update rpitx.py don't turn beacon on and off --- rpitx.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rpitx.py b/rpitx.py index 9032ac10..483bf471 100644 --- a/rpitx.py +++ b/rpitx.py @@ -59,7 +59,7 @@ txc = 7 squelch = 6 green = 16 -# command_tx = True +command_tx = True GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) @@ -258,7 +258,7 @@ if __name__ == "__main__": sleep(1) if GPIO.input(squelch) == False: print("carrier received!") - command_tx = not command_tx + # command_tx = not command_tx print(command_tx) try: @@ -328,7 +328,7 @@ if __name__ == "__main__": while True: if GPIO.input(squelch) == False: print("carrier received!") - command_tx = not command_tx + # command_tx = not command_tx print(command_tx) try: @@ -465,7 +465,7 @@ if __name__ == "__main__": sleep(1) if GPIO.input(squelch) == False: print("carrier received!") - command_tx = not command_tx + # command_tx = not command_tx print(command_tx) try: @@ -554,7 +554,7 @@ if __name__ == "__main__": sleep(1) if GPIO.input(squelch) == False: print("carrier received!") - command_tx = not command_tx + # command_tx = not command_tx print(command_tx) try: command_count += 1 @@ -642,7 +642,7 @@ if __name__ == "__main__": # output(txLed, txLedOff) if GPIO.input(squelch) == False: print("carrier received!") - command_tx = not command_tx + # command_tx = not command_tx print(command_tx) try: @@ -694,7 +694,7 @@ if __name__ == "__main__": # output(txLed, txLedOff) if GPIO.input(squelch) == False: print("carrier received!") - command_tx = not command_tx + # command_tx = not command_tx print(command_tx) try: