mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-07 07:09:00 +08:00
Remove business case from 'homeHead' function for UM2
CURA-4844
This commit is contained in:
parent
41fc807e21
commit
1a1e65da1e
@ -58,14 +58,9 @@ class GenericOutputController(PrinterOutputController):
|
|||||||
self._output_device.sendCommand("G90")
|
self._output_device.sendCommand("G90")
|
||||||
|
|
||||||
def homeHead(self, printer):
|
def homeHead(self, printer):
|
||||||
# Ultimaker+ firmware is 'Marlin V1' and UM2 is "Marlin Ultimaker2"
|
self._output_device.sendCommand("G28 X")
|
||||||
# For this reason UM2 should move only X, Y and not Z, otherwise it might brake the build plate
|
self._output_device.sendCommand("G28 Y")
|
||||||
name = self._output_device.getFirmwareName()
|
self._output_device.sendCommand("G28 Z")
|
||||||
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):
|
def homeBed(self, printer):
|
||||||
self._output_device.sendCommand("G28 Z")
|
self._output_device.sendCommand("G28 Z")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user