Fixed heatup bed command in checking wizard

This commit is contained in:
Jaime van Kessel 2015-09-17 10:43:56 +02:00
parent aeb935489e
commit 4808f52f59
2 changed files with 4 additions and 2 deletions

View file

@ -347,15 +347,17 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
@pyqtSlot(int) @pyqtSlot(int)
def heatupNozzle(self, temperature): def heatupNozzle(self, temperature):
Logger.log("d", "Setting nozzle temperature to %s", temperature)
self._sendCommand("M104 S%s" % temperature) self._sendCommand("M104 S%s" % temperature)
@pyqtSlot(int) @pyqtSlot(int)
def heatupBed(self, temperature): def heatupBed(self, temperature):
Logger.log("d", "Setting bed temperature to %s", temperature)
self._sendCommand("M140 S%s" % temperature) self._sendCommand("M140 S%s" % temperature)
@pyqtSlot("long", "long","long") @pyqtSlot("long", "long","long")
def moveHead(self, x, y, z): def moveHead(self, x, y, z):
print("Moving head" , x , " ", y , " " , z) Logger.log("d","Moving head to %s, %s , %s", x, y, z)
self._sendCommand("G0 X%s Y%s Z%s"%(x,y,z)) self._sendCommand("G0 X%s Y%s Z%s"%(x,y,z))
@pyqtSlot() @pyqtSlot()

View file

@ -262,7 +262,7 @@ Item
if(printer_connection != null) if(printer_connection != null)
{ {
bedTempStatus.text = catalog.i18nc("@info:progress","Checking") bedTempStatus.text = catalog.i18nc("@info:progress","Checking")
printer_connection.printer.heatupBed(60) printer_connection.heatupBed(60)
wizardPage.bed_target_temp = 60 wizardPage.bed_target_temp = 60
} }
} }