|
@@ -35,26 +35,34 @@ void controllerfan_update() {
|
35
|
35
|
const millis_t ms = millis();
|
36
|
36
|
if (ELAPSED(ms, nextMotorCheck)) {
|
37
|
37
|
nextMotorCheck = ms + 2500UL; // Not a time critical function, so only check every 2.5s
|
|
38
|
+
|
|
39
|
+ // If any of the drivers or the bed are enabled...
|
38
|
40
|
if (X_ENABLE_READ == X_ENABLE_ON || Y_ENABLE_READ == Y_ENABLE_ON || Z_ENABLE_READ == Z_ENABLE_ON
|
39
|
41
|
#if HAS_HEATED_BED
|
40
|
42
|
|| thermalManager.soft_pwm_amount_bed > 0
|
41
|
43
|
#endif
|
42
|
|
- || E0_ENABLE_READ == E_ENABLE_ON // If any of the drivers are enabled...
|
|
44
|
+ #if HAS_X2_ENABLE
|
|
45
|
+ || X2_ENABLE_READ == X_ENABLE_ON
|
|
46
|
+ #endif
|
|
47
|
+ #if HAS_Y2_ENABLE
|
|
48
|
+ || Y2_ENABLE_READ == Y_ENABLE_ON
|
|
49
|
+ #endif
|
|
50
|
+ #if HAS_Z2_ENABLE
|
|
51
|
+ || Z2_ENABLE_READ == Z_ENABLE_ON
|
|
52
|
+ #endif
|
|
53
|
+ || E0_ENABLE_READ == E_ENABLE_ON
|
43
|
54
|
#if E_STEPPERS > 1
|
44
|
55
|
|| E1_ENABLE_READ == E_ENABLE_ON
|
45
|
|
- #if HAS_X2_ENABLE
|
46
|
|
- || X2_ENABLE_READ == X_ENABLE_ON
|
47
|
|
- #endif
|
48
|
56
|
#if E_STEPPERS > 2
|
49
|
|
- || E2_ENABLE_READ == E_ENABLE_ON
|
|
57
|
+ || E2_ENABLE_READ == E_ENABLE_ON
|
50
|
58
|
#if E_STEPPERS > 3
|
51
|
|
- || E3_ENABLE_READ == E_ENABLE_ON
|
|
59
|
+ || E3_ENABLE_READ == E_ENABLE_ON
|
52
|
60
|
#if E_STEPPERS > 4
|
53
|
|
- || E4_ENABLE_READ == E_ENABLE_ON
|
54
|
|
- #endif // E_STEPPERS > 4
|
55
|
|
- #endif // E_STEPPERS > 3
|
56
|
|
- #endif // E_STEPPERS > 2
|
57
|
|
- #endif // E_STEPPERS > 1
|
|
61
|
+ || E4_ENABLE_READ == E_ENABLE_ON
|
|
62
|
+ #endif
|
|
63
|
+ #endif
|
|
64
|
+ #endif
|
|
65
|
+ #endif
|
58
|
66
|
) {
|
59
|
67
|
lastMotorOn = ms; //... set time to NOW so the fan will turn on
|
60
|
68
|
}
|