1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-12-03 17:21:29 +00:00

🩹 Fix AUTOFAN_CASE

Followup to #25554
This commit is contained in:
Scott Lahteine 2023-04-13 04:05:56 -05:00
parent 4781d57912
commit 141cfdde2c

View File

@ -1262,8 +1262,9 @@ int16_t Temperature::getHeaterPower(const heater_id_t heater_id) {
#else
#define _AUTOFAN_SPEED() EXTRUDER_AUTO_FAN_SPEED
#endif
#define _AUTOFAN_CASE(N) case N: _UPDATE_AUTO_FAN(E##N, fan_on, _AUTOFAN_SPEED()); break
#define AUTOFAN_CASE(N) OPTCODE(HAS_AUTO_FAN_##N, _AUTOFAN_CASE(N))
#define _AUTOFAN_CASE(N) case N: _UPDATE_AUTO_FAN(E##N, fan_on, _AUTOFAN_SPEED()); break;
#define _AUTOFAN_NOT(N)
#define AUTOFAN_CASE(N) TERN(HAS_AUTO_FAN_##N, _AUTOFAN_CASE, _AUTOFAN_NOT)(N)
switch (f) {
REPEAT(8, AUTOFAN_CASE)