1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 08:45:36 +03:00

Bugfix when using sonar as well as rx-parallel-pwm

This allows sonar to be used at the same time as parallel PWM for the receiver.  If the RX_PARALLEL_PWM feature is enabled, then the sonar system uses motor ports 5 and 6, otherwise it uses receiver pins 7 and 8.
This commit is contained in:
Ben Hitchcock 2014-08-08 23:30:25 +08:00 committed by Dominic Clifton
parent 95852d0bdf
commit 74ef19bc34
3 changed files with 10 additions and 7 deletions

View file

@ -464,10 +464,6 @@ void validateAndFixConfig(void)
featureClear(FEATURE_RSSI_ADC);
// current meter needs the same ports
featureClear(FEATURE_CURRENT_METER);
#ifdef SONAR
// sonar needs a free PWM port
featureClear(FEATURE_SONAR);
#endif
#endif
#if defined(STM32F10X_MD) || defined(CHEBUZZ) || defined(STM32F3DISCOVERY)