aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArksine <arksine.code@gmail.com>2020-07-06 06:18:52 -0400
committerKevinOConnor <kevin@koconnor.net>2020-07-06 12:57:50 -0400
commitcd8f250e84b8f1ae56eb8fc87d2c6fa623e14c98 (patch)
tree05526f43ab0ae94c68e0eb268211ff91f388cac1
parentbfbdc04c02fb3c4b58e38e6d534024a4987e9aff (diff)
downloadkutter-cd8f250e84b8f1ae56eb8fc87d2c6fa623e14c98.tar.gz
kutter-cd8f250e84b8f1ae56eb8fc87d2c6fa623e14c98.tar.xz
kutter-cd8f250e84b8f1ae56eb8fc87d2c6fa623e14c98.zip
webooks: do not connect if debuginput is enabled
Changing this check from debugoutput to debuginput allows remote applications to perform tests against Klippy without an MCU connected. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
-rw-r--r--klippy/webhooks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/klippy/webhooks.py b/klippy/webhooks.py
index 1decdce5..1b601342 100644
--- a/klippy/webhooks.py
+++ b/klippy/webhooks.py
@@ -99,9 +99,9 @@ class ServerConnection:
self.fd = self.fd_handle = self.mutex = None
self.is_server_connected = False
self.partial_data = ""
- is_fileoutput = (printer.get_start_args().get('debugoutput')
- is not None)
- if is_fileoutput:
+ is_fileinput = (printer.get_start_args().get('debuginput')
+ is not None)
+ if is_fileinput:
# Do not try to connect in klippy batch mode
return
self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)