Fix SPINDLE_LASER_FREQUENCY (#20509)

This commit is contained in:
Ashammaru
2020-12-27 02:01:54 +01:00
committed by GitHub
parent 331ca6a800
commit 719404803b
3 changed files with 22 additions and 9 deletions

View File

@@ -117,6 +117,12 @@ public:
#if ENABLED(SPINDLE_LASER_PWM)
private:
static void _set_ocr(const uint8_t ocr);
public:
static void set_ocr(const uint8_t ocr);
static inline void set_ocr_power(const uint8_t ocr) { power = ocr; set_ocr(ocr); }
static void ocr_off();
@@ -143,7 +149,7 @@ public:
#elif CUTTER_UNIT_IS(RPM)
2
#else
#error "???"
#error "CUTTER_UNIT_IS(???)"
#endif
));
}