From f6a73bbd848cc9291bfb84649ae32c21da3d1806 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <github@thinkyhead.com>
Date: Sat, 10 Feb 2018 15:36:42 -0600
Subject: [PATCH] Patch Power class

---
 Marlin/power.cpp | 2 +-
 Marlin/power.h   | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Marlin/power.cpp b/Marlin/power.cpp
index e3af4406f8c..a2f231f6981 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 c61c64e6f72..a5c7dba7938 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();