Browse Source

Move WRITE_FAN

Scott Lahteine 3 years ago
parent
commit
f2726399dd
2 changed files with 2 additions and 1 deletions
  1. 0
    1
      Marlin/src/inc/Conditionals_post.h
  2. 2
    0
      Marlin/src/module/temperature.cpp

+ 0
- 1
Marlin/src/inc/Conditionals_post.h View File

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

+ 2
- 0
Marlin/src/module/temperature.cpp View File

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

Loading…
Cancel
Save