mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Added moveHead to usb printing
And ensured that wizard page uses correct version again CURA-1339
This commit is contained in:
parent
fc88844cf8
commit
6b7fb894f8
2 changed files with 16 additions and 11 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue