From 7882b3c9753a96ee78903fab0eb14ae0c3fb9737 Mon Sep 17 00:00:00 2001 From: Robert Pelnar Date: Wed, 3 Oct 2018 17:29:24 +0200 Subject: [PATCH] Update fsensor in Manage_inactivity instead of main loop. --- Firmware/Marlin_main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 80f21058..7d9cc2e4 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -1964,10 +1964,6 @@ void loop() isPrintPaused ? manage_inactivity(true) : manage_inactivity(false); checkHitEndstops(); lcd_update(0); -#ifdef FILAMENT_SENSOR - if (mcode_in_progress != 600 && !mmu_enabled) //M600 not in progress - fsensor_update(); -#endif //FILAMENT_SENSOR #ifdef TMC2130 tmc2130_check_overtemp(); if (tmc2130_sg_crash) @@ -7368,7 +7364,10 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) //default argument s } } else + { fsensor_autoload_check_stop(); + fsensor_update(); + } } } #endif //FILAMENT_SENSOR