Fix HAS_FAN macro (#16717)
This commit is contained in:
parent
e8ed4329ea
commit
8737c35ded
@ -1220,7 +1220,7 @@
|
|||||||
|
|
||||||
// Other fans
|
// Other fans
|
||||||
#define HAS_FAN0 (PIN_EXISTS(FAN))
|
#define HAS_FAN0 (PIN_EXISTS(FAN))
|
||||||
#define _HAS_FAN(P) (PIN_EXISTS(FAN_##P) && CONTROLLER_FAN_PIN != FAN_##P##_PIN && E0_AUTO_FAN_PIN != FAN_##P##_PIN && E1_AUTO_FAN_PIN != FAN_##P##_PIN && E2_AUTO_FAN_PIN != FAN_##P##_PIN && E3_AUTO_FAN_PIN != FAN_##P##_PIN && E4_AUTO_FAN_PIN != FAN_##P##_PIN && E5_AUTO_FAN_PIN != FAN_##P##_PIN && E6_AUTO_FAN_PIN != FAN_##P##_PIN && E7_AUTO_FAN_PIN != FAN_##P##_PIN)
|
#define _HAS_FAN(P) (PIN_EXISTS(FAN##P) && CONTROLLER_FAN_PIN != FAN##P##_PIN && E0_AUTO_FAN_PIN != FAN##P##_PIN && E1_AUTO_FAN_PIN != FAN##P##_PIN && E2_AUTO_FAN_PIN != FAN##P##_PIN && E3_AUTO_FAN_PIN != FAN##P##_PIN && E4_AUTO_FAN_PIN != FAN##P##_PIN && E5_AUTO_FAN_PIN != FAN##P##_PIN && E6_AUTO_FAN_PIN != FAN##P##_PIN && E7_AUTO_FAN_PIN != FAN##P##_PIN)
|
||||||
#define HAS_FAN1 _HAS_FAN(1)
|
#define HAS_FAN1 _HAS_FAN(1)
|
||||||
#define HAS_FAN2 _HAS_FAN(2)
|
#define HAS_FAN2 _HAS_FAN(2)
|
||||||
#define HAS_FAN3 _HAS_FAN(3)
|
#define HAS_FAN3 _HAS_FAN(3)
|
||||||
|
Loading…
Reference in New Issue
Block a user