From 63f693bcbce12a303d7244a31316be60eabe920b Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 8 Mar 2026 09:51:34 -0400 Subject: [PATCH] Update transmit.py fix ptt --- transmit.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/transmit.py b/transmit.py index 1ab21446..f795f989 100644 --- a/transmit.py +++ b/transmit.py @@ -603,15 +603,15 @@ if __name__ == "__main__": while (True): sleep(0.1) # GPIO.wait_for_edge(pttPin, GPIO.FALLING) - while (input(pttPin) != 0): - sleep(0.5) + while (input(ptt) != 0): + sleep(0.2) # GPIO.output(txLed, 1) output(txLed, 1) print("1") # sleep(0.1) - GPIO.wait_for_edge(pttPin, GPIO.RISING) - while (input(pttPin) != 1): - sleep(0.5) +# GPIO.wait_for_edge(pttPin, GPIO.RISING) + while (input(ptt) != 1): + sleep(0.2) # GPIO.output(txLed, 0) output(txLed, 0) print("0")