gcode: Fix regression causing lost asynchronous commands
Commit d0932009
introduced an error that could cause lost input in
cases where the sender did not wait for an "ok" message before sending
the next command.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8419e152bb
commit
959509496a
|
@ -132,7 +132,8 @@ class GCodeParser:
|
||||||
self.cmd_M112({})
|
self.cmd_M112({})
|
||||||
self.reactor.unregister_fd(self.fd_handle)
|
self.reactor.unregister_fd(self.fd_handle)
|
||||||
self.fd_handle = None
|
self.fd_handle = None
|
||||||
return
|
while self.is_processing_data:
|
||||||
|
eventtime = self.reactor.pause(eventtime + 0.100)
|
||||||
self.is_processing_data = True
|
self.is_processing_data = True
|
||||||
self.process_commands(lines)
|
self.process_commands(lines)
|
||||||
self.is_processing_data = False
|
self.is_processing_data = False
|
||||||
|
|
Loading…
Reference in New Issue