mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
CC3D - Add support for battery voltage monitoring on S5_IN.
See docs for further details.
This commit is contained in:
parent
f591732aa9
commit
41ff2e8d0e
6 changed files with 83 additions and 8 deletions
|
@ -326,6 +326,11 @@ pwmOutputConfiguration_t *pwmInit(drv_pwm_config_t *init)
|
|||
continue;
|
||||
#endif
|
||||
|
||||
#ifdef CC3D
|
||||
if (init->useVbat && timerIndex == PWM5) {
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
// hacks to allow current functionality
|
||||
if (type == MAP_TO_PWM_INPUT && !init->useParallelPWM)
|
||||
type = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue