Browse Source

Fix SpindleLaser class

Fix #14465
Scott Lahteine 6 years ago
parent
commit
021c4ccf5f
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      Marlin/src/feature/spindle_laser.h

+ 2
- 3
Marlin/src/feature/spindle_laser.h View File

57
 
57
 
58
   //static bool active() { return READ(SPINDLE_LASER_ENA_PIN) == SPINDLE_LASER_ACTIVE_HIGH; }
58
   //static bool active() { return READ(SPINDLE_LASER_ENA_PIN) == SPINDLE_LASER_ACTIVE_HIGH; }
59
 
59
 
60
+  static void update_output();
61
+
60
   #if ENABLED(SPINDLE_LASER_PWM)
62
   #if ENABLED(SPINDLE_LASER_PWM)
61
-    static void update_output();
62
     static void set_ocr(const uint8_t ocr);
63
     static void set_ocr(const uint8_t ocr);
63
     static inline void set_ocr_power(const uint8_t pwr) { power = pwr; set_ocr(pwr); }
64
     static inline void set_ocr_power(const uint8_t pwr) { power = pwr; set_ocr(pwr); }
64
-  #else
65
-    static inline void update_output() { }
66
   #endif
65
   #endif
67
 
66
 
68
   // Wait for spindle to spin up or spin down
67
   // Wait for spindle to spin up or spin down

Loading…
Cancel
Save