TheJoshW / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
1 stars 0 forks source link

Handle retraction #25

Open TheJoshW opened 3 years ago

TheJoshW commented 3 years ago

From Kevin: I'm curious about self.runout_helper.note_filament_present(extruder_pos < self.filament_runout_pos). Would that be correct for retractions? That is, if the filament runout sensor detected a fault (filament not present) and there was a retraction, would that clear the fault? I wonder if if extruder_pos > self.filament_runout_pos: self.runout_helper.note_filament_present(False) might be more accurate. I'm not really sure though.

My initial response: Maybe keep a prev_extruder_pos to detect retractions and act appropriately.