Added explicit home bed before rest of bed leveling

CURA-1102
This commit is contained in:
Jaime van Kessel 2016-03-17 14:44:09 +01:00
parent aafb981245
commit 89256b5423
2 changed files with 5 additions and 0 deletions

View file

@ -391,6 +391,10 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
def homeHead(self):
self._sendCommand("G28")
@pyqtSlot()
def homeBed(self):
self._sendCommand("G28 Z")
## Directly send the command, withouth checking connection state (eg; printing).
# \param cmd string with g-code
def _sendCommand(self, cmd):

View file

@ -21,6 +21,7 @@ Item
property variant printer_connection: UM.USBPrinterManager.connectedPrinterList.getItem(0).printer
Component.onCompleted:
{
printer_connection.homeBed()
printer_connection.homeHead()
}
UM.I18nCatalog { id: catalog; name:"cura"}