Explorar o código

Optimise FanCheck initialisation when farm mode is on

Saves 12 bytes of flash memory (Arduino IDE 1.8.19)
Guðni Már Gilbert %!s(int64=3) %!d(string=hai) anos
pai
achega
caf496e996
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      Firmware/Marlin_main.cpp

+ 1 - 2
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