mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Added explicit home bed before rest of bed leveling
CURA-1102
This commit is contained in:
parent
aafb981245
commit
89256b5423
2 changed files with 5 additions and 0 deletions
|
@ -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):
|
||||
|
|
|
@ -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"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue