diff --git a/transmit.py b/transmit.py index e19b480e..f0eb2b6d 100644 --- a/transmit.py +++ b/transmit.py @@ -460,7 +460,7 @@ if __name__ == "__main__": system("sudo systemctl restart gpsd.socket") sim_failure_check() - if (hab_mode == True) and (mode == 'a'): + if not (hab_mode == True) and (mode == 'a'): 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)