diff --git a/Marlin/power.cpp b/Marlin/power.cpp index e3af4406f..a2f231f69 100644 --- a/Marlin/power.cpp +++ b/Marlin/power.cpp @@ -50,7 +50,7 @@ bool Power::is_power_needed() { #endif if (X_ENABLE_READ == X_ENABLE_ON || Y_ENABLE_READ == Y_ENABLE_ON || Z_ENABLE_READ == Z_ENABLE_ON || - thermalManager.soft_pwm_bed > 0 + thermalManager.soft_pwm_amount_bed > 0 || E0_ENABLE_READ == E_ENABLE_ON // If any of the drivers are enabled... #if E_STEPPERS > 1 || E1_ENABLE_READ == E_ENABLE_ON diff --git a/Marlin/power.h b/Marlin/power.h index c61c64e6f..a5c7dba79 100644 --- a/Marlin/power.h +++ b/Marlin/power.h @@ -27,6 +27,8 @@ #ifndef POWER_H #define POWER_H +#include "types.h" + class Power { public: static void check();