Browse Source

AP_BLHeli: use is_dshot_protocol in place of >= AP_HAL::RCOutput::MODE_PWM_DSHOT150

gps-1.3.1
Iampete1 3 years ago committed by Andrew Tridgell
parent
commit
2b402ed2d7
  1. 2
      libraries/AP_BLHeli/AP_BLHeli.cpp

2
libraries/AP_BLHeli/AP_BLHeli.cpp

@ -1339,7 +1339,7 @@ void AP_BLHeli::init(void) @@ -1339,7 +1339,7 @@ void AP_BLHeli::init(void)
// setting the digital mask changes the min/max PWM values
// it's important that this is NOT done for non-digital channels as otherwise
// PWM min can result in motors turning. set for individual overrides first
if (mask && otype >= AP_HAL::RCOutput::MODE_PWM_DSHOT150) {
if (mask && hal.rcout->is_dshot_protocol(otype)) {
digital_mask = mask;
}

Loading…
Cancel
Save