mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
FastPwm for all oneshot42/125 and multishot // Cleanup
This commit is contained in:
parent
702ef4e798
commit
e0c1f84206
4 changed files with 21 additions and 12 deletions
|
@ -308,8 +308,8 @@ void init(void)
|
|||
#endif
|
||||
|
||||
pwm_params.useOneshot = feature(FEATURE_ONESHOT125);
|
||||
if (masterConfig.use_fast_pwm || masterConfig.use_oneshot42) {
|
||||
pwm_params.useFastPWM = masterConfig.use_fast_pwm ? true : false;
|
||||
pwm_params.useFastPWM = masterConfig.use_fast_pwm ? true : false;
|
||||
if (masterConfig.use_oneshot42) {
|
||||
pwm_params.useOneshot42 = masterConfig.use_oneshot42 ? true : false;
|
||||
masterConfig.use_multiShot = false;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue