Patch Power class

This commit is contained in:
Scott Lahteine 2018-02-10 15:36:42 -06:00
parent baaf79b755
commit f6a73bbd84
2 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,7 @@ bool Power::is_power_needed() {
#endif #endif
if (X_ENABLE_READ == X_ENABLE_ON || Y_ENABLE_READ == Y_ENABLE_ON || Z_ENABLE_READ == Z_ENABLE_ON || 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... || E0_ENABLE_READ == E_ENABLE_ON // If any of the drivers are enabled...
#if E_STEPPERS > 1 #if E_STEPPERS > 1
|| E1_ENABLE_READ == E_ENABLE_ON || E1_ENABLE_READ == E_ENABLE_ON

View File

@ -27,6 +27,8 @@
#ifndef POWER_H #ifndef POWER_H
#define POWER_H #define POWER_H
#include "types.h"
class Power { class Power {
public: public:
static void check(); static void check();