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:
Kevin O'Connor 2018-02-01 10:55:45 -05:00
parent 7d3600f918
commit 67f9c4948d
1 changed files with 2 additions and 2 deletions

View File

@ -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