SVGHMI: fix inverted behavior of SuppressBrowserOutput.
authorEdouard Tisserant <edouard@beremiz.fr>
Mon, 16 Dec 2024 11:40:55 +0100 (3 months ago)
changeset 4075 69114ac20de8
parent 4073 5fed45d506bc
child 4077 03ed01134858
SVGHMI: fix inverted behavior of SuppressBrowserOutput.
svghmi/svghmi.py
--- a/svghmi/svghmi.py	Thu Dec 12 11:56:17 2024 +0100
+++ b/svghmi/svghmi.py	Mon Dec 16 11:40:55 2024 +0100
@@ -642,7 +642,7 @@
         res += ((target_fname, open(target_path, "rb")),)
 
         svghmi_cmds = {}
-        suppress_output = not(self.GetParamsAttributes("SVGHMI.SuppressBrowserOutput")["value"])
+        suppress_output = self.GetParamsAttributes("SVGHMI.SuppressBrowserOutput")["value"]
         stdstream = "subprocess.DEVNULL" if suppress_output else "None"
         for thing in ["Start", "Stop", "Watchdog"]:
              given_command = self.GetParamsAttributes("SVGHMI.On"+thing)["value"]