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)
def heatupNozzle(self, temperature):
Logger.log("d", "Setting nozzle temperature to %s", temperature)
self._sendCommand("M104 S%s" % temperature)
@pyqtSlot(int)
def heatupBed(self, temperature):
Logger.log("d", "Setting bed temperature to %s", temperature)
self._sendCommand("M140 S%s" % temperature)
@pyqtSlot("long", "long","long")
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))
@pyqtSlot()