mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Fix: bed leveling for UM+
CURA-4844
This commit is contained in:
parent
70f867c4f1
commit
290adbd906
5 changed files with 57 additions and 2 deletions
|
@ -58,8 +58,14 @@ class GenericOutputController(PrinterOutputController):
|
|||
self._output_device.sendCommand("G90")
|
||||
|
||||
def homeHead(self, printer):
|
||||
self._output_device.sendCommand("G28 X")
|
||||
self._output_device.sendCommand("G28 Y")
|
||||
# Ultimaker+ frimware is 'Marlin V1' and UM2 is "Marlin Ultimaker2"
|
||||
# For this reason UM2 should move only X, Y and not Z, otherwise it might brake the build plate
|
||||
name = self._output_device.getFirmwareName()
|
||||
if name and name.find("Ultimaker2") != -1:
|
||||
self._output_device.sendCommand("G28 X")
|
||||
self._output_device.sendCommand("G28 Y")
|
||||
else:
|
||||
self._output_device.sendCommand("G28") # Move X-, Y- and Z-coordinate
|
||||
|
||||
def homeBed(self, printer):
|
||||
self._output_device.sendCommand("G28 Z")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue