diff options
author | Jaime van Kessel <nallath@gmail.com> | 2015-08-19 12:35:02 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2015-08-19 12:35:02 +0300 |
commit | d146801da636a0a5987819c810160f9003e6d0a3 (patch) | |
tree | 5b8c200d506a5fa6d5cf3cbd5beda073c1776a8f /plugins/USBPrinting/PrinterConnection.py | |
parent | f0a358d175bb0f70cdefef420a7c3e69da7a7463 (diff) |
Added heated bed check
Diffstat (limited to 'plugins/USBPrinting/PrinterConnection.py')
-rw-r--r-- | plugins/USBPrinting/PrinterConnection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/USBPrinting/PrinterConnection.py b/plugins/USBPrinting/PrinterConnection.py index 59f3232575..d79d2ef67d 100644 --- a/plugins/USBPrinting/PrinterConnection.py +++ b/plugins/USBPrinting/PrinterConnection.py @@ -347,7 +347,7 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter): @pyqtSlot(int) def heatupBed(self, temperature): - self._sendCommand("M109 S%s" % temperature) + self._sendCommand("M140 S%s" % temperature) ## Directly send the command, withouth checking connection state (eg; printing). # \param cmd string with g-code @@ -466,7 +466,7 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter): if line is None: break # None is only returned when something went wrong. Stop listening - if time.time() > temperature_request_timeout: + if time.time() > temperature_request_timeout: if self._extruder_count > 0: self._temperature_requested_extruder_index = (self._temperature_requested_extruder_index + 1) % self._extruder_count self.sendCommand("M105 T%d" % (self._temperature_requested_extruder_index)) |