AP_BLHeli: use motors is_digital_pwm_type helper

This commit is contained in:
Iampete1 2021-09-22 16:18:48 +01:00 committed by Andrew Tridgell
parent bc29735cb2
commit 9106835c93
1 changed files with 1 additions and 1 deletions

View File

@ -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;