Patch Power class
This commit is contained in:
parent
4311dd13ae
commit
7280fa1e31
|
@ -29,8 +29,9 @@
|
|||
#if ENABLED(AUTO_POWER_CONTROL)
|
||||
|
||||
#include "power.h"
|
||||
#include "temperature.h"
|
||||
#include "stepper_indirection.h"
|
||||
#include "../module/temperature.h"
|
||||
#include "../module/stepper_indirection.h"
|
||||
#include "../Marlin.h"
|
||||
|
||||
Power powerManager;
|
||||
|
||||
|
@ -50,7 +51,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
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
#ifndef POWER_H
|
||||
#define POWER_H
|
||||
|
||||
#include "../core/types.h"
|
||||
|
||||
class Power {
|
||||
public:
|
||||
static void check();
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#endif
|
||||
|
||||
#if ENABLED(AUTO_POWER_CONTROL)
|
||||
#include "power.h"
|
||||
#include "../feature/power.h"
|
||||
#endif
|
||||
|
||||
#if ENABLED(PID_EXTRUSION_SCALING)
|
||||
|
|
Loading…
Reference in a new issue