mirror of
https://github.com/andreili/klipper.git
synced 2025-09-20 11:54:42 +02:00
gcode: Fix out-of-order check for M112 when read from gcode pseudo-tty
Make sure to check for an out-of-order M112 command on the gcode pseudo-tty even if there is no pending commands being processed from that gcode pseudo-tty. There could be long running commands pending from webhooks, virtual_sdcard, or similar. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
68b67a16d6
commit
96c3ca160e
@ -430,7 +430,6 @@ class GCodeIO:
|
||||
self.gcode.request_restart('exit')
|
||||
pending_commands.append("")
|
||||
# Handle case where multiple commands pending
|
||||
if self.is_processing_data or len(pending_commands) > 1:
|
||||
if len(pending_commands) < 20:
|
||||
# Check for M112 out-of-order
|
||||
for line in lines:
|
||||
|
Loading…
x
Reference in New Issue
Block a user