mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 13:55:18 +03:00
Fix compile linking issues when USE_PWM is disabled
This commit is contained in:
parent
efac0ee6a9
commit
a2841d783b
1 changed files with 9 additions and 5 deletions
|
@ -294,10 +294,14 @@ void init(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_PWM) || defined(USE_PPM)
|
if (0) {}
|
||||||
if (feature(FEATURE_RX_PPM)) {
|
#if defined(USE_PPM)
|
||||||
|
else if (feature(FEATURE_RX_PPM)) {
|
||||||
ppmRxInit(ppmConfig(), motorConfig()->dev.motorPwmProtocol);
|
ppmRxInit(ppmConfig(), motorConfig()->dev.motorPwmProtocol);
|
||||||
} else if (feature(FEATURE_RX_PARALLEL_PWM)) {
|
}
|
||||||
|
#endif
|
||||||
|
#if defined(USE_PWM)
|
||||||
|
else if (feature(FEATURE_RX_PARALLEL_PWM)) {
|
||||||
pwmRxInit(pwmConfig());
|
pwmRxInit(pwmConfig());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue