From caf496e9961f0d37c95b5e7fb9d785b9609c44f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Wed, 9 Feb 2022 07:26:34 +0000 Subject: [PATCH] Optimise FanCheck initialisation when farm mode is on Saves 12 bytes of flash memory (Arduino IDE 1.8.19) --- Firmware/Marlin_main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 23c517982..4351311e5 100755 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -1117,8 +1117,7 @@ void setup() fsensor_autoload_set(false); #endif //FILAMENT_SENSOR // ~ FanCheck -> on - if(!(eeprom_read_byte((uint8_t*)EEPROM_FAN_CHECK_ENABLED))) - eeprom_update_byte((uint8_t*)EEPROM_FAN_CHECK_ENABLED,true); + eeprom_update_byte((uint8_t*)EEPROM_FAN_CHECK_ENABLED, true); } #ifdef TMC2130