1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00

RSSI monitoring on CC3D

This commit is contained in:
Pierre-A 2014-11-07 09:23:54 +01:00
parent 2c8b3af88d
commit caf81ad640
4 changed files with 29 additions and 36 deletions

View file

@ -305,16 +305,21 @@ pwmOutputConfiguration_t *pwmInit(drv_pwm_config_t *init)
#endif
#ifdef CC3D
if (init->useVbat && timerIndex == PWM5) {
if (init->useVbat && timerIndex == Vbat_TIMER) {
continue;
}
#endif
#ifdef CC3D
if (init->useCurrentMeterADC && timerIndex == CurrentMeter_TIMER) {
continue;
}
#endif
#ifdef CC3D
if (init->useRSSIADC && timerIndex == RSSI_TIMER) {
continue;
}
#endif
#ifdef CC3D
if (init->useCurrentMeterADC && timerIndex == PWM6) {
continue;
}
#endif
// hacks to allow current functionality
if (type == MAP_TO_PWM_INPUT && !init->useParallelPWM)
type = 0;