move aprs squelch read back

fm-rx
Alan Johnston 3 years ago committed by GitHub
parent ef24697fbf
commit d1b1c1c9b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -196,12 +196,6 @@ if __name__ == "__main__":
output(txLed, txLedOff)
system("sudo rm /home/pi/CubeSatSim/ready")
f.close()
if (debug_mode == 1):
print("Ready for next packet!")
sleep(0.5)
except:
if GPIO.input(squelch) == False:
print("carrier received!")
command_tx = not command_tx
@ -215,6 +209,13 @@ if __name__ == "__main__":
else:
print("Turning off transmit")
system("echo > command_tx False")
if (debug_mode == 1):
print("Ready for next packet!")
sleep(0.5)
except:
sleep(0.5)
elif (mode == 'm'):
print("CW")

Loading…
Cancel
Save

Powered by TurnKey Linux.