Update transmit.py fix e.result

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

@ -402,10 +402,11 @@ if __name__ == "__main__":
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
print(f"Command failed with return code: {e.returncode}") print(f"Command failed with return code: {e.returncode}")
print(f"Command run was: {e.cmd}") print(f"Command run was: {e.cmd}")
output = e.cmd
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 (mode != 'e') and (e.stdout != "active"): if (mode != 'e') and (output != "active"):
print("Programming FM module!\n"); print("Programming FM module!\n");
output(pd, 1) output(pd, 1)
output (ptt, 1) output (ptt, 1)

Loading…
Cancel
Save

Powered by TurnKey Linux.