mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Added heated bed check
This commit is contained in:
parent
f0a358d175
commit
d146801da6
2 changed files with 38 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue