From 021c4ccf5fa0aca0a742fd549cc390242bf17211 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 5 Jul 2019 18:39:27 -0500 Subject: [PATCH] Fix SpindleLaser class Fix #14465 --- Marlin/src/feature/spindle_laser.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Marlin/src/feature/spindle_laser.h b/Marlin/src/feature/spindle_laser.h index 5d70895ef5..ddc89b5add 100644 --- a/Marlin/src/feature/spindle_laser.h +++ b/Marlin/src/feature/spindle_laser.h @@ -57,12 +57,11 @@ public: //static bool active() { return READ(SPINDLE_LASER_ENA_PIN) == SPINDLE_LASER_ACTIVE_HIGH; } + static void update_output(); + #if ENABLED(SPINDLE_LASER_PWM) - static void update_output(); static void set_ocr(const uint8_t ocr); static inline void set_ocr_power(const uint8_t pwr) { power = pwr; set_ocr(pwr); } - #else - static inline void update_output() { } #endif // Wait for spindle to spin up or spin down