mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Do not send new G-CODEs when the RX buffer is filling up. This is in an attempt to fix #1777 where smoothieware based printers would halt in the middle of the print.
This commit is contained in:
parent
cc2cc2a751
commit
112bb260ac
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
||||||
self._sendCommand(self._command_queue.get())
|
self._sendCommand(self._command_queue.get())
|
||||||
elif self._paused:
|
elif self._paused:
|
||||||
pass # Nothing to do!
|
pass # Nothing to do!
|
||||||
else:
|
elif self._serial.in_waiting < 256: # Do not send new G-CODE when the RX buffer is filling up
|
||||||
self._sendNextGcodeLine()
|
self._sendNextGcodeLine()
|
||||||
elif b"resend" in line.lower() or b"rs" in line:
|
elif b"resend" in line.lower() or b"rs" in line:
|
||||||
# A resend can be requested either by Resend, resend or rs.
|
# A resend can be requested either by Resend, resend or rs.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue