mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 13:59:03 +08:00
Cancel the print when the printer sends message (b'!!') about a fatal error.
This commit is contained in:
parent
b1be25e8d8
commit
b3f0292ce6
@ -298,6 +298,9 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
||||
self._printers[0].updateTargetBedTemperature(float(match[1]))
|
||||
|
||||
if self._is_printing:
|
||||
if line.startswith(b'!!'):
|
||||
Logger.log('e', "Printer signals fatal error. Cancelling print. {}".format(line))
|
||||
self.cancelPrint()
|
||||
if b"ok" in line:
|
||||
if not self._command_queue.empty():
|
||||
self._sendCommand(self._command_queue.get())
|
||||
|
Loading…
x
Reference in New Issue
Block a user