|
|
|
|
@ -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
|
|
|
|
|
|