Added moveHead to usb printing

And ensured that wizard page uses correct version again

CURA-1339
This commit is contained in:
Jaime van Kessel 2016-04-14 14:21:22 +02:00
parent fc88844cf8
commit 6b7fb894f8
2 changed files with 16 additions and 11 deletions

View file

@ -126,6 +126,11 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
gcode_list = getattr( Application.getInstance().getController().getScene(), "gcode_list")
self.printGCode(gcode_list)
def _moveHead(self, x, y, z, speed):
self._sendCommand("G91")
self._sendCommand("G0 X%s Y%s Z%s F%s" % (x, y, z, speed))
self._sendCommand("G90")
## Start a print based on a g-code.
# \param gcode_list List with gcode (strings).
def printGCode(self, gcode_list):