This commit is contained in:
sanjayk03-dev
2024-07-08 23:12:22 +05:30
parent 16d3898f7f
commit f7ed7bba09
2 changed files with 8 additions and 6 deletions

View File

@@ -371,12 +371,14 @@ class Mach(Comm):
# Set the absolute position both locally and via the AVR
target = position + state.get('offset_' + axis)
self.mlog.info('target ' + str(target))
self.mlog.info('state.get ' + str(state.get('offset_' + axis)))
self.mlog.info('target %s' % str(target))
self.mlog.info('state.get %s axis' % str(state.get('offset_' + axis)))
state.set(axis + 'p', target)
axes = config.values.setdefault('axes',{})
axes[axis + 'p'] = target
self.mlog.info('Saving %s axis' % axis)
config.set('axes', axes)
self.mlog
super().queue_command(Cmd.set_axis(axis, target))