removed logs

This commit is contained in:
sanjayk03-dev
2024-07-24 20:17:20 +05:30
parent 7245c8bbd6
commit 4e957b52cb
5 changed files with 1 additions and 19 deletions

View File

@@ -275,7 +275,6 @@ class Mach(Comm):
def home(self, axis, position = None):
state = self.ctrl.state
# config = self.ctrl.config
if axis is None: axes = 'zxyabc' # TODO This should be configurable
else: axes = '%c' % axis
@@ -313,19 +312,6 @@ class Mach(Comm):
self.planner.mdi(gcode, False)
super().resume()
# 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))
# self.log.info('324: Cycle : {}'.format(state.get('cycle')))
# for axis in axes:
# if 'offset_' + axis in config.values:
# self.log.info('327 axis: {} == {}'.format(axis, config.values['offset_' + axis]))
# self.set_position(axis, -float(config.values['offset_' + axis]))
def unhome(self, axis): self.mdi('G28.2 %c0' % axis)