mirror of https://github.com/ArduPilot/ardupilot
AP_BLHeli: use motors is_digital_pwm_type helper
This commit is contained in:
parent
bc29735cb2
commit
9106835c93
|
@ -1367,7 +1367,7 @@ void AP_BLHeli::init(void)
|
|||
if (motors) {
|
||||
uint16_t motormask = motors->get_motor_mask();
|
||||
// set the rest of the digital channels
|
||||
if (motors->get_pwm_type() >= AP_Motors::PWM_TYPE_DSHOT150) {
|
||||
if (motors->is_digital_pwm_type()) {
|
||||
digital_mask |= motormask;
|
||||
}
|
||||
mask |= motormask;
|
||||
|
|
Loading…
Reference in New Issue