gcode: Ack even empty lines
An empty input line should still return an "ok" message. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
7d3600f918
commit
67f9c4948d
|
@ -150,8 +150,8 @@ class GCodeParser:
|
||||||
# Skip line number at start of command
|
# Skip line number at start of command
|
||||||
del parts[:2]
|
del parts[:2]
|
||||||
if not parts:
|
if not parts:
|
||||||
self.cmd_default(params)
|
# Treat empty line as empty command
|
||||||
continue
|
parts = ['', '']
|
||||||
params['#command'] = cmd = parts[0] + parts[1].strip()
|
params['#command'] = cmd = parts[0] + parts[1].strip()
|
||||||
# Invoke handler for command
|
# Invoke handler for command
|
||||||
self.need_ack = need_ack
|
self.need_ack = need_ack
|
||||||
|
|
Loading…
Reference in New Issue