gcode: Fix out-of-order cmd_M112 reference

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-08-23 13:18:30 -04:00
parent 37bbf161f8
commit 6763210558
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@ class GCodeIO:
# Check for M112 out-of-order
for line in lines:
if self.m112_r.match(line) is not None:
self.cmd_M112(None)
self.gcode.cmd_M112(None)
if self.is_processing_data:
if len(pending_commands) >= 20:
# Stop reading input