Optimise FanCheck initialisation when farm mode is on

Saves 12 bytes of flash memory (Arduino IDE 1.8.19)
This commit is contained in:
Guðni Már Gilbert 2022-02-09 07:26:34 +00:00
parent 19dc05597d
commit caf496e996

View File

@ -1117,8 +1117,7 @@ void setup()
fsensor_autoload_set(false); fsensor_autoload_set(false);
#endif //FILAMENT_SENSOR #endif //FILAMENT_SENSOR
// ~ FanCheck -> on // ~ 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 #ifdef TMC2130