|
|
|
@ -408,12 +408,7 @@ if __name__ == "__main__":
|
|
|
|
gpsd_status = e.stdout.strip()
|
|
|
|
gpsd_status = e.stdout.strip()
|
|
|
|
print(f"Output of the command (stdout): {e.stdout}")
|
|
|
|
print(f"Output of the command (stdout): {e.stdout}")
|
|
|
|
# print(f"Error output of the command (stderr): {e.stderr}")
|
|
|
|
# print(f"Error output of the command (stderr): {e.stderr}")
|
|
|
|
|
|
|
|
|
|
|
|
# if (gpsd_status == "active"):
|
|
|
|
|
|
|
|
# print("gpsd status is active"
|
|
|
|
|
|
|
|
# if (gpsd_status == "inactive"):
|
|
|
|
|
|
|
|
# print("gpsd status is inactive"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mode != 'e') and (gpsd_status != "active"):
|
|
|
|
if (mode != 'e') and (gpsd_status != "active"):
|
|
|
|
print("Programming FM module!\n");
|
|
|
|
print("Programming FM module!\n");
|
|
|
|
output(pd, 1)
|
|
|
|
output(pd, 1)
|
|
|
|
|