gcode: Apply SET_GCODE_OFFSET to next move command
Apply the changes made by a SET_GCODE_OFFSET command to the next move, even if the move is relative to the last movement. This allows the command to implement "babystepping" requests. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
b93fd5b1b5
commit
1b1d2adb31
|
@ -533,7 +533,9 @@ class GCodeParser:
|
|||
offset += self.get_float(axis + '_ADJUST', params)
|
||||
else:
|
||||
continue
|
||||
self.base_position[pos] += offset - self.homing_position[pos]
|
||||
delta = offset - self.homing_position[pos]
|
||||
self.last_position[pos] += delta
|
||||
self.base_position[pos] += delta
|
||||
self.homing_position[pos] = offset
|
||||
def cmd_M206(self, params):
|
||||
# Offset axes
|
||||
|
|
Loading…
Reference in New Issue