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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue