Skip to content

Commit

Permalink
mpc: fix mismatch with bleeding-edge base
Browse files Browse the repository at this point in the history
the expression hasattr(extruder, "extruder_stepper") always evaluated
false, preventing ff from working. but does not seem to be needed.
  • Loading branch information
richfelker committed May 13, 2024
1 parent 899446d commit ef1436d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions klippy/extras/control_mpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ def temperature_update(self, read_time, temp, target_temp):
if self.toolhead is not None:
extruder = self.toolhead.get_extruder()
if (
hasattr(extruder, "extruder_stepper")
and extruder.get_heater() == self.heater
extruder.get_heater() == self.heater
):
pos_prev = extruder.find_past_position(read_time - dt)
pos = extruder.find_past_position(read_time)
Expand Down

0 comments on commit ef1436d

Please sign in to comment.