diff --git a/transmit.py b/transmit.py index cd65a096..3d5c1871 100644 --- a/transmit.py +++ b/transmit.py @@ -402,10 +402,11 @@ if __name__ == "__main__": except subprocess.CalledProcessError as e: print(f"Command failed with return code: {e.returncode}") print(f"Command run was: {e.cmd}") + output = e.cmd print(f"Output of the command (stdout): {e.stdout}") 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"); output(pd, 1) output (ptt, 1)