moved saving offset to config from State.py to Mach.py

This commit is contained in:
sanjayk03-dev
2024-09-18 22:56:18 +05:30
parent f12e7fbe69
commit e7ab108581
2 changed files with 4 additions and 5 deletions

View File

@@ -243,11 +243,6 @@ class State(object):
if self.timeout is None:
self.timeout = self.ctrl.ioloop.call_later(0.25, self._notify)
# Storing origin to config
if name in ['offset_x', 'offset_y', 'offset_z'] and self.vars.get('cycle') == 'mdi':
self.ctrl.config.set('axes', {name: value})
self.set('cycle', 'idle')
# Loading origin from config after homing
if load_position and self.vars.get('cycle') == 'idle':
for axis in 'xyz':