aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/gcode.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-02-01 10:55:45 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-02-01 11:03:49 -0500
commit67f9c4948d2384a21c2cf64a1bfae0719e28ea2e (patch)
tree44abb984a3b758ab08fe9d880edc408f9eb88287 /klippy/gcode.py
parent7d3600f91833b7c6062f64b4b4cc387b133bb6ca (diff)
downloadkutter-67f9c4948d2384a21c2cf64a1bfae0719e28ea2e.tar.gz
kutter-67f9c4948d2384a21c2cf64a1bfae0719e28ea2e.tar.xz
kutter-67f9c4948d2384a21c2cf64a1bfae0719e28ea2e.zip
gcode: Ack even empty lines
An empty input line should still return an "ok" message. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r--klippy/gcode.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index 2c6a983b..8895764f 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -150,8 +150,8 @@ class GCodeParser:
# Skip line number at start of command
del parts[:2]
if not parts:
- self.cmd_default(params)
- continue
+ # Treat empty line as empty command
+ parts = ['', '']
params['#command'] = cmd = parts[0] + parts[1].strip()
# Invoke handler for command
self.need_ack = need_ack