From 9f15edb8fc9269948d6df231e0b910750f679656 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 19 Nov 2023 14:27:40 -0500 Subject: [PATCH] Update rpitx.py added back missing squelch variable --- rpitx.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpitx.py b/rpitx.py index fb1ab782..7d04a3bb 100644 --- a/rpitx.py +++ b/rpitx.py @@ -137,7 +137,7 @@ print("CubeSatSim v1.3b rpitx.py starting...") pd = 21 ptt = 20 txc_pin = 7 - = 6 +squelch = 6 green = 16 command_tx = True @@ -150,9 +150,9 @@ GPIO.setup(27, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(txc_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(green, GPIO.OUT) -GPIO.setup(, GPIO.IN, pull_up_down=GPIO.PUD_UP) ## pull up in case pin is not connected +GPIO.setup(squelch, GPIO.IN, pull_up_down=GPIO.PUD_UP) ## pull up in case pin is not connected -if GPIO.input() == False: +if GPIO.input(squelch) == False: print("squelch not set correctly, no command input!") no_command = True else: