From b04f32b5ddedebb8a2e3d9b1780ef797f88ef790 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 24 Jan 2026 07:58:44 -0500 Subject: [PATCH] Update transmit.py fix HAB mode CW ID setting --- transmit.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/transmit.py b/transmit.py index f0eb2b6d..1e722c7d 100644 --- a/transmit.py +++ b/transmit.py @@ -460,7 +460,9 @@ if __name__ == "__main__": system("sudo systemctl restart gpsd.socket") sim_failure_check() - if not (hab_mode == True) and (mode == 'a'): + if (hab_mode == True) and (mode == 'a'): + print("Don't transmit CW ID since APRS HAB mode is active") + else: if (((mode == 'a') or (mode == 'b') or (mode == 'f') or (mode == 's') or (mode == 'j')) and (command_tx == True) and (skip == False)) or ((mode == 'e') and (command_tx == True)): # battery_saver_mode GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi Zero 2 and Pi 4 GPIO.setup(txLed, GPIO.OUT) @@ -480,8 +482,7 @@ if __name__ == "__main__": sleep(1) else: print("Don't transmit CW ID since command_tx is False or APRS mode or change of mode") - else: - print("Don't transmit CW ID since APRS HAB mode is active") + if (transmit): # print 'Length: ', len(sys.argv)