Files
klipper/klippy/extras
Ben Lye 109aab9dc0 hall_filament_width_sensor: Avoid race conditions
Race conditions exist when `M221 S100` commands are sent outside the
timer, while the sensor is active. This intermittently prevents the flow
multiplier resetting to 100% when either flow compensation or the width
sensor are changed to disabled.

We can avoid this by moving the diable actions, including the `M221 S100`
commands, inside the timer loop and only using `M221` outside the timer
while the sensor is disabled.

Signed-off-by: Ben Lye ben@lye.co.nz
2026-04-08 14:57:04 -04:00
..
2026-02-07 14:01:45 -05:00
2026-01-26 18:30:18 -05:00
2023-11-02 13:08:53 -04:00
2025-11-14 18:47:27 -05:00
2025-04-03 14:08:23 -04:00
2025-05-26 18:44:29 -04:00
2025-12-10 13:39:26 -05:00
2026-03-01 15:29:26 -05:00
2025-12-10 13:39:26 -05:00
2022-06-30 13:56:35 -04:00
2025-07-22 14:17:43 -04:00
2025-12-10 13:39:26 -05:00
2026-03-09 22:19:27 -04:00
2026-02-07 14:01:45 -05:00
2025-07-12 16:17:22 -04:00
2026-03-04 19:56:26 -05:00
2025-07-12 16:17:22 -04:00
2024-05-21 20:31:23 -04:00
2025-07-12 16:17:22 -04:00
2026-03-04 19:56:26 -05:00