Skip to content

Commit 132a988

Browse files
committed
FIX bugfix const
1 parent ff87846 commit 132a988

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/common/hardware_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void _setHighFrequency(const long freq, const int pin){
121121
// function setting the high pwm frequency to the supplied pins
122122
// - hardware speciffic
123123
// supports Arudino/ATmega328, STM32 and ESP32
124-
void _setPwmFrequency(const long pwm_frequency,const int pinA, const int pinB, const int pinC, const int pinD) {
124+
void _setPwmFrequency(long pwm_frequency,const int pinA, const int pinB, const int pinC, const int pinD) {
125125
#if defined(__AVR_ATmega328P__) || defined(__AVR_ATmega168__) // if arduino uno and other ATmega328p chips
126126
// High PWM frequency
127127
// - always max 32kHz

src/common/hardware_utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @param pinC pinC bldc motor or pin2A stepper motor
2424
* @param pinD pin2B stepper motor
2525
*/
26-
void _setPwmFrequency(const long pwm_frequency,const int pinA, const int pinB, const int pinC, const int pinD = NOT_SET);
26+
void _setPwmFrequency(long pwm_frequency, const int pinA, const int pinB, const int pinC, const int pinD = NOT_SET);
2727

2828
/**
2929
* Function setting the duty cycle to the pwm pin (ex. analogWrite())
@@ -36,7 +36,7 @@ void _setPwmFrequency(const long pwm_frequency,const int pinA, const int pinB, c
3636
* @param pinB phase B hardware pin number
3737
* @param pinC phase C hardware pin number
3838
*/
39-
void _writeDutyCycle(long pwm_frequency, float dc_a, float dc_b, float dc_c, int pinA, int pinB, int pinC );
39+
void _writeDutyCycle(float dc_a, float dc_b, float dc_c, int pinA, int pinB, int pinC);
4040

4141
/**
4242
* Function setting the duty cycle to the pwm pin (ex. analogWrite())

0 commit comments

Comments
 (0)