Skip to content

Commit

Permalink
z_thermal_adjust: Set last_position in get_position
Browse files Browse the repository at this point in the history
  • Loading branch information
wlhlm committed Aug 4, 2022
1 parent 8d20321 commit c0ac008
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion klippy/extras/z_thermal_adjust.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ def calc_unadjust(self, pos):
return [pos[0], pos[1], unadjusted_z, pos[3]]

def get_position(self):
return self.calc_unadjust(self.next_transform.get_position())
pos = self.calc_unadjust(self.next_transform.get_position())
self.last_position = pos
return pos

def move(self, newpos, speed):
# don't apply to extrude only moves or when disabled
Expand Down

0 comments on commit c0ac008

Please sign in to comment.