Skip to content

Commit

Permalink
Fix bad runout computation
Browse files Browse the repository at this point in the history
  • Loading branch information
GMagician committed Jul 15, 2023
1 parent 28f69a0 commit 4efc227
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Marlin/src/feature/runout.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ class FilamentSensorBase {
#endif

static void block_completed(const block_t * const b) {
if (b->steps.x || b->steps.y || b->steps.z || did_pause_print) { // Allow pause purge move to re-trigger runout state
if (b->steps.x >= MIN_STEPS_PER_SEGMENT || b->steps.y >= MIN_STEPS_PER_SEGMENT ||
b->steps.z >= MIN_STEPS_PER_SEGMENT || did_pause_print) { // Allow pause purge move to re-trigger runout state
// Only trigger on extrusion with XYZ movement to allow filament change and retract/recover.
const uint8_t e = b->extruder;
const int32_t steps = b->steps.e;
Expand Down

0 comments on commit 4efc227

Please sign in to comment.