Skip to content

Commit 8c5fab4

Browse files
committed
Use _UNUSED(
1 parent e3c2260 commit 8c5fab4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/current_sense/GenericCurrentSense.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ PhaseCurrent_s GenericCurrentSense::getPhaseCurrents(){
5656
// 3 - success but gains inverted
5757
// 4 - success but pins reconfigured and gains inverted
5858
int GenericCurrentSense::driverAlign(float voltage){
59-
(void) voltage; // remove unused parameter warning
59+
_UNUSED(voltage) ; // remove unused parameter warning
6060
int exit_flag = 1;
6161
if(skip_align) return exit_flag;
6262

src/drivers/BLDCDriver6PWM.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ void BLDCDriver6PWM::setPwm(float Ua, float Ub, float Uc) {
8282

8383
// Set voltage to the pwm pin
8484
void BLDCDriver6PWM::setPhaseState(int sa, int sb, int sc) {
85-
(void) sa;
86-
(void) sb;
87-
(void) sc;
85+
_UNUSED(sa);
86+
_UNUSED(sb);
87+
_UNUSED(sc);
8888
// TODO implement disabling
8989
}

0 commit comments

Comments
 (0)