teseting first implementation

This commit is contained in:
sanjayk03-dev
2024-07-17 21:38:29 +05:30
parent 2e2dff2d32
commit e5a8be5aa1
5 changed files with 4 additions and 16 deletions

View File

@@ -313,7 +313,9 @@ class Mach(Comm):
self.planner.mdi(gcode, False)
super().resume()
if 'offset_' + axis in config.values:
if 'offset_' + axis and axis + 'p' in config.values:
state.set('offset_' + axis, config.values['offset_' + axis])
state.set(axis + 'p', 0)
self.log.info('Set the state value from config: {} = {}'.format('offset_' + axis , config.values['offset_' + axis]))
else:
self.log.info('Values is not present in config:{}'.format('offset_' + axis))