Update transmit.py add prints

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

@ -415,6 +415,7 @@ if __name__ == "__main__":
if (mode != 'e'):
if (gpsd_status == "active"):
print("Stopping gpsd.socket")
system("sudo systemctl stop gpsd.socket")
print("Programming FM module!\n");
output(pd, 1)
@ -435,7 +436,8 @@ if __name__ == "__main__":
print("Error in serial write")
output(pd, 0)
if (gpsd_status == "active"):
system("sudo systemctl start gpsd.socket")
print("Restarting gpsd.socket")
system("sudo systemctl restart 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.