|
@@ -29,8 +29,9 @@
|
29
|
29
|
#if ENABLED(AUTO_POWER_CONTROL)
|
30
|
30
|
|
31
|
31
|
#include "power.h"
|
32
|
|
-#include "temperature.h"
|
33
|
|
-#include "stepper_indirection.h"
|
|
32
|
+#include "../module/temperature.h"
|
|
33
|
+#include "../module/stepper_indirection.h"
|
|
34
|
+#include "../Marlin.h"
|
34
|
35
|
|
35
|
36
|
Power powerManager;
|
36
|
37
|
|
|
@@ -50,7 +51,7 @@ bool Power::is_power_needed() {
|
50
|
51
|
#endif
|
51
|
52
|
|
52
|
53
|
if (X_ENABLE_READ == X_ENABLE_ON || Y_ENABLE_READ == Y_ENABLE_ON || Z_ENABLE_READ == Z_ENABLE_ON ||
|
53
|
|
- thermalManager.soft_pwm_bed > 0
|
|
54
|
+ thermalManager.soft_pwm_amount_bed > 0
|
54
|
55
|
|| E0_ENABLE_READ == E_ENABLE_ON // If any of the drivers are enabled...
|
55
|
56
|
#if E_STEPPERS > 1
|
56
|
57
|
|| E1_ENABLE_READ == E_ENABLE_ON
|