Pārlūkot izejas kodu

Fix SpindleLaser class

Fix #14465
Scott Lahteine 6 gadus atpakaļ
vecāks
revīzija
021c4ccf5f
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. 2
    3
      Marlin/src/feature/spindle_laser.h

+ 2
- 3
Marlin/src/feature/spindle_laser.h Parādīt failu

@@ -57,12 +57,11 @@ public:
57 57
 
58 58
   //static bool active() { return READ(SPINDLE_LASER_ENA_PIN) == SPINDLE_LASER_ACTIVE_HIGH; }
59 59
 
60
+  static void update_output();
61
+
60 62
   #if ENABLED(SPINDLE_LASER_PWM)
61
-    static void update_output();
62 63
     static void set_ocr(const uint8_t ocr);
63 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 65
   #endif
67 66
 
68 67
   // Wait for spindle to spin up or spin down

Notiek ielāde…
Atcelt
Saglabāt