Prevent homing twice on printers that don't support X/Y specialisation

If the X Y is ignored and it just executes G28, it still executes it only once now.
This commit is contained in:
Ghostkeeper 2018-04-25 13:01:49 +02:00
parent ec9be7a103
commit 4aec316b48
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -58,8 +58,7 @@ class GenericOutputController(PrinterOutputController):
self._output_device.sendCommand("G90")
def homeHead(self, printer):
self._output_device.sendCommand("G28 X")
self._output_device.sendCommand("G28 Y")
self._output_device.sendCommand("G28 X Y")
def homeBed(self, printer):
self._output_device.sendCommand("G28 Z")