mirror of https://github.com/Desuuuu/klipper.git
gcode: Don't log debugging output for unknown commands if command is blank
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
4c14063404
commit
6bba285f8e
|
@ -251,7 +251,9 @@ class GCodeDispatch:
|
||||||
raise gcmd.error(self.printer.get_state_message()[0])
|
raise gcmd.error(self.printer.get_state_message()[0])
|
||||||
return
|
return
|
||||||
if not cmd:
|
if not cmd:
|
||||||
logging.debug(gcmd.get_commandline())
|
cmdline = gcmd.get_commandline()
|
||||||
|
if cmdline:
|
||||||
|
logging.debug(cmdline)
|
||||||
return
|
return
|
||||||
if cmd.startswith("M117 "):
|
if cmd.startswith("M117 "):
|
||||||
# Handle M117 gcode with numeric and special characters
|
# Handle M117 gcode with numeric and special characters
|
||||||
|
|
Loading…
Reference in New Issue