mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 22:08:02 +00:00
Fix setPwmFrequency declaration (#9687)
This commit is contained in:
parent
50d38e7d03
commit
d413781b98
@ -1269,7 +1269,7 @@ void Temperature::init() {
|
|||||||
|
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
|
|
||||||
void setPwmFrequency(const pin_t pin, int val) {
|
void Temperature::setPwmFrequency(const pin_t pin, int val) {
|
||||||
val &= 0x07;
|
val &= 0x07;
|
||||||
switch (digitalPinToTimer(pin)) {
|
switch (digitalPinToTimer(pin)) {
|
||||||
#ifdef TCCR0A
|
#ifdef TCCR0A
|
||||||
|
@ -588,7 +588,7 @@ class Temperature {
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
#if ENABLED(FAST_PWM_FAN)
|
#if ENABLED(FAST_PWM_FAN)
|
||||||
void setPwmFrequency(const pin_t pin, int val);
|
static void setPwmFrequency(const pin_t pin, int val);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void set_current_temp_raw();
|
static void set_current_temp_raw();
|
||||||
|
Loading…
Reference in New Issue
Block a user