Update rpitx.py added back missing squelch variable

beta-v1.3.2-battery-saver-4
Alan Johnston 2 years ago committed by GitHub
parent edc66f9ed5
commit 9f15edb8fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -137,7 +137,7 @@ print("CubeSatSim v1.3b rpitx.py starting...")
pd = 21 pd = 21
ptt = 20 ptt = 20
txc_pin = 7 txc_pin = 7
= 6 squelch = 6
green = 16 green = 16
command_tx = True 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(txc_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(green, GPIO.OUT) 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!") print("squelch not set correctly, no command input!")
no_command = True no_command = True
else: else:

Loading…
Cancel
Save

Powered by TurnKey Linux.