diff --git a/transmit.py b/transmit.py index 18c97c1c..cd65a096 100644 --- a/transmit.py +++ b/transmit.py @@ -404,9 +404,8 @@ if __name__ == "__main__": print(f"Command run was: {e.cmd}") print(f"Output of the command (stdout): {e.stdout}") print(f"Error output of the command (stderr): {e.stderr}") - print(result.stdout) - if (mode != 'e') and (result.stdout != "active"): + if (mode != 'e') and (e.stdout != "active"): print("Programming FM module!\n"); output(pd, 1) output (ptt, 1)