From 19c1ba62745763950e2e6850a1916d4aff1dbf8c Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Tue, 25 Sep 2018 14:25:03 +0200 Subject: [PATCH] Remove duplicate condition. This condition was already in if(mmu_enabled) {} else branch. --- Firmware/Marlin_main.cpp | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index a16bf3f8..f0f137f7 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -3235,19 +3235,16 @@ void gcode_M701() custom_message_type = CUSTOM_MSG_TYPE_STATUS; #ifdef FILAMENT_SENSOR - if (mmu_enabled == false) - { - fsensor_oq_meassure_stop(); + fsensor_oq_meassure_stop(); - if (!fsensor_oq_result()) - { - bool disable = lcd_show_fullscreen_message_yes_no_and_wait_P(_i("Fil. sensor response is poor, disable it?"), false, true); - lcd_update_enable(true); - lcd_update(2); - if (disable) - fsensor_disable(); - } - } + if (!fsensor_oq_result()) + { + bool disable = lcd_show_fullscreen_message_yes_no_and_wait_P(_i("Fil. sensor response is poor, disable it?"), false, true); + lcd_update_enable(true); + lcd_update(2); + if (disable) + fsensor_disable(); + } #endif //FILAMENT_SENSOR } }