Auto-detect ALTFAN after fw. update

This commit is contained in:
Alex Voinea 2020-08-12 12:19:08 +03:00
parent 96435ad084
commit 6b853a4cc3
No known key found for this signature in database
GPG Key ID: F5034E7CFCF2F973

View File

@ -232,7 +232,7 @@ bool extruder_altfan_detect()
uint8_t overrideVal = eeprom_read_byte((uint8_t *)EEPROM_ALTFAN_OVERRIDE); uint8_t overrideVal = eeprom_read_byte((uint8_t *)EEPROM_ALTFAN_OVERRIDE);
if (overrideVal == EEPROM_EMPTY_VALUE) if (overrideVal == EEPROM_EMPTY_VALUE)
{ {
overrideVal = 0; overrideVal = (calibration_status() == CALIBRATION_STATUS_CALIBRATED) ? 1 : 0;
eeprom_update_byte((uint8_t *)EEPROM_ALTFAN_OVERRIDE, overrideVal); eeprom_update_byte((uint8_t *)EEPROM_ALTFAN_OVERRIDE, overrideVal);
} }
altfanStatus.altfanOverride = overrideVal; altfanStatus.altfanOverride = overrideVal;