From 9ca1e18e938558b6fbf33342f1ecd2493b6595a3 Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Mon, 8 Jul 2024 13:43:57 +0530 Subject: [PATCH] editing mach.py --- src/py/bbctrl/Mach.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/py/bbctrl/Mach.py b/src/py/bbctrl/Mach.py index 1eead51..65cee3a 100644 --- a/src/py/bbctrl/Mach.py +++ b/src/py/bbctrl/Mach.py @@ -371,10 +371,11 @@ class Mach(Comm): # Set the absolute position both locally and via the AVR target = position + state.get('offset_' + axis) - json_data = config.values.copy() + json_data = config.values axes = json_data.setdefault('axes', {}) axes[axis] = { 'abs' : target, 'off' : state.get('offset_' + axis)} - config.save(json_data) + self.mlog.info('json_data: ' + repr(json_data)) + # config.save(json_data) state.set(axis + 'p', target) super().queue_command(Cmd.set_axis(axis, target))