瀏覽代碼

Optimise FanCheck initialisation when farm mode is on

Saves 12 bytes of flash memory (Arduino IDE 1.8.19)
Guðni Már Gilbert 3 年之前
父節點
當前提交
caf496e996
共有 1 個文件被更改,包括 1 次插入2 次删除
  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