Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2015-08-19 12:35:02 +0300
committerJaime van Kessel <nallath@gmail.com>2015-08-19 12:35:02 +0300
commitd146801da636a0a5987819c810160f9003e6d0a3 (patch)
tree5b8c200d506a5fa6d5cf3cbd5beda073c1776a8f /plugins/USBPrinting/PrinterConnection.py
parentf0a358d175bb0f70cdefef420a7c3e69da7a7463 (diff)
Added heated bed check
Diffstat (limited to 'plugins/USBPrinting/PrinterConnection.py')
-rw-r--r--plugins/USBPrinting/PrinterConnection.py4
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))