Update transmit.py turn gpsd.socket on and off to program TXC

master-fsk-cw
Alan Johnston 2 weeks ago committed by GitHub
parent fef30d4e7c
commit 1a5cf4debb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -412,7 +412,10 @@ if __name__ == "__main__":
print(f"Output of the command (stdout): {e.stdout}")
# print(f"Error output of the command (stderr): {e.stderr}")
if (mode != 'e') and (gpsd_status != "active"):
if (mode != 'e'):
if (gpsd_status == "active"):
system("sudo systemctl stop gpsd.socket")
print("Programming FM module!\n");
output(pd, 1)
output (ptt, 1)
@ -431,6 +434,8 @@ if __name__ == "__main__":
except:
print("Error in serial write")
output(pd, 0)
if (gpsd_status == "active"):
system("sudo systemctl start gpsd.socket")
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

Loading…
Cancel
Save

Powered by TurnKey Linux.