From 9374fe4a0ff8d5d43c561262d2ad548e9ef1d7c0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 16 Dec 2025 06:34:51 -0500 Subject: [PATCH] Update transmit.py fix e.result --- transmit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)