Update transmit.py print gpsd status

pi-sensors-auto-gps
Alan Johnston 2 days ago committed by GitHub
parent 4612435c8f
commit bcfdb97796
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -408,6 +408,11 @@ if __name__ == "__main__":
gpsd_status = e.stdout gpsd_status = e.stdout
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");

Loading…
Cancel
Save

Powered by TurnKey Linux.