mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Don't force sending M105 requests without OK
This prevents serial buffer overflow on the printer.
This commit is contained in:
parent
f4c88aff0f
commit
777470db7f
1 changed files with 3 additions and 5 deletions
|
@ -226,9 +226,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
||||||
|
|
||||||
if self._last_temperature_request is None or time() > self._last_temperature_request + self._timeout:
|
if self._last_temperature_request is None or time() > self._last_temperature_request + self._timeout:
|
||||||
# Timeout, or no request has been sent at all.
|
# Timeout, or no request has been sent at all.
|
||||||
self._command_received.set() # We haven't really received the ok, but we need to send a new command
|
if not self._printer_busy: # Don't flood the printer with temperature requests while it is busy
|
||||||
|
|
||||||
if not self._printer_busy: # don't flood the printer with temperature requests while it is busy
|
|
||||||
self.sendCommand("M105")
|
self.sendCommand("M105")
|
||||||
self._last_temperature_request = time()
|
self._last_temperature_request = time()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue