🧑‍💻 Assume Auto Fans < HOTENDS (#25815)

This commit is contained in:
Giuliano Zaro 2023-05-13 23:36:23 +02:00 committed by GitHub
parent de78b60252
commit e89e67fde0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1428,7 +1428,7 @@ int16_t Temperature::getHeaterPower(const heater_id_t heater_id) {
#define AUTOFAN_CASE(N) TERN(HAS_AUTO_FAN_##N, _AUTOFAN_CASE, _AUTOFAN_NOT)(N)
switch (f) {
REPEAT(8, AUTOFAN_CASE)
REPEAT(HOTENDS, AUTOFAN_CASE)
#if HAS_AUTO_CHAMBER_FAN && !AUTO_CHAMBER_IS_E
case CHAMBER_FAN_INDEX: _UPDATE_AUTO_FAN(CHAMBER, fan_on, CHAMBER_AUTO_FAN_SPEED); break;
#endif