From 4efc22711ac59aa2454f3ffd0829bc7cbf746550 Mon Sep 17 00:00:00 2001 From: GMagician <3684609+GMagician@users.noreply.github.com> Date: Sat, 15 Jul 2023 10:09:24 +0200 Subject: [PATCH] Fix bad runout computation --- Marlin/src/feature/runout.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Marlin/src/feature/runout.h b/Marlin/src/feature/runout.h index a001459e9d99..90549c024882 100644 --- a/Marlin/src/feature/runout.h +++ b/Marlin/src/feature/runout.h @@ -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;