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>
This commit is contained in:
parent
bfbdc04c02
commit
cd8f250e84
|
@ -99,9 +99,9 @@ class ServerConnection:
|
||||||
self.fd = self.fd_handle = self.mutex = None
|
self.fd = self.fd_handle = self.mutex = None
|
||||||
self.is_server_connected = False
|
self.is_server_connected = False
|
||||||
self.partial_data = ""
|
self.partial_data = ""
|
||||||
is_fileoutput = (printer.get_start_args().get('debugoutput')
|
is_fileinput = (printer.get_start_args().get('debuginput')
|
||||||
is not None)
|
is not None)
|
||||||
if is_fileoutput:
|
if is_fileinput:
|
||||||
# Do not try to connect in klippy batch mode
|
# Do not try to connect in klippy batch mode
|
||||||
return
|
return
|
||||||
self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||||
|
|
Loading…
Reference in New Issue