From 4f3489233ce8942d577bb270851dd2d5fc9c1149 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 14 Apr 2016 11:02:43 +0200 Subject: [PATCH] Added home head & bed implementations CURA-1339 --- plugins/USBPrinting/USBPrinterOutputDevice.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/USBPrinting/USBPrinterOutputDevice.py b/plugins/USBPrinting/USBPrinterOutputDevice.py index 3c724007da..db988b8b6b 100644 --- a/plugins/USBPrinting/USBPrinterOutputDevice.py +++ b/plugins/USBPrinting/USBPrinterOutputDevice.py @@ -112,6 +112,12 @@ class USBPrinterOutputDevice(PrinterOutputDevice): def _setHeadZ(self, z, speed): self._sendCommand("G0 Y%s F%s" % (z, speed)) + def _homeHead(self): + self._sendCommand("G28") + + def _homeBed(self): + self._sendCommand("G28 Z") + @pyqtSlot() def startPrint(self): self.writeStarted.emit(self)