Skip to content

Commit 9712ead

Browse files
committed
FIX _isset error
1 parent 1fe11b3 commit 9712ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drivers/BLDCDriver6PWM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ int BLDCDriver6PWM::init() {
5555

5656

5757
// sanity check for the voltage limit configuration
58-
if( _isset(voltage_limit) || voltage_limit > voltage_power_supply) voltage_limit = voltage_power_supply;
58+
if( !_isset(voltage_limit) || voltage_limit > voltage_power_supply) voltage_limit = voltage_power_supply;
5959

6060
// configure 6pwm
6161
// hardware specific function - depending on driver and mcu

0 commit comments

Comments
 (0)