Move WRITE_FAN

This commit is contained in:
Scott Lahteine 2021-01-06 21:32:30 -06:00
parent d47e694048
commit f2726399dd
2 changed files with 2 additions and 1 deletions

View file

@ -2302,7 +2302,6 @@
#if FAN_COUNT > 0 #if FAN_COUNT > 0
#define HAS_FAN 1 #define HAS_FAN 1
#define WRITE_FAN(n, v) WRITE(FAN##n##_PIN, (v) ^ FAN_INVERTING)
#endif #endif
/** /**

View file

@ -2536,6 +2536,8 @@ void Temperature::tick() {
static SoftPWM soft_pwm_chamber; static SoftPWM soft_pwm_chamber;
#endif #endif
#define WRITE_FAN(n, v) WRITE(FAN##n##_PIN, (v) ^ FAN_INVERTING)
#if DISABLED(SLOW_PWM_HEATERS) #if DISABLED(SLOW_PWM_HEATERS)
#if ANY(HAS_HOTEND, HAS_HEATED_BED, HAS_HEATED_CHAMBER, FAN_SOFT_PWM) #if ANY(HAS_HOTEND, HAS_HEATED_BED, HAS_HEATED_CHAMBER, FAN_SOFT_PWM)