disable homing a automatically

This commit is contained in:
sanjayk03-dev
2024-12-12 00:51:38 +05:30
parent 161c397213
commit 36e4d6f4e9
2 changed files with 4 additions and 2 deletions

View File

@@ -276,7 +276,9 @@ class Mach(Comm):
def home(self, axis, position = None):
state = self.ctrl.state
if axis is None: axes = 'zxyabc' # TODO This should be configurable
if axis is None:
is_rotary_active = state.get('2an', None) == 3
axes = 'zxybc' if is_rotary_active else 'zxyabc' # TODO This should be configurable
else: axes = '%c' % axis
for axis in axes: