mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Cleanup Softserial/LedStrip timer clash checking. Move definitions of
led strip timer and softserial pwm ports/timers into target specific files.
This commit is contained in:
parent
f9f6b05aac
commit
2d8f65448d
12 changed files with 64 additions and 60 deletions
|
@ -511,9 +511,21 @@ void validateAndFixConfig(void)
|
|||
}
|
||||
|
||||
|
||||
#if defined(STM32F10X)
|
||||
// led strip needs the same timer as softserial
|
||||
if (feature(FEATURE_SOFTSERIAL)) {
|
||||
#if defined(LED_STRIP) && (defined(USE_SOFTSERIAL1) || defined(USE_SOFTSERIAL2))
|
||||
if (feature(FEATURE_SOFTSERIAL) && (
|
||||
#ifdef USE_SOFTSERIAL1
|
||||
(LED_STRIP_TIMER == SOFTSERIAL_1_TIMER)
|
||||
#else
|
||||
0
|
||||
#endif
|
||||
||
|
||||
#ifdef USE_SOFTSERIAL2
|
||||
(LED_STRIP_TIMER == SOFTSERIAL_2_TIMER)
|
||||
#else
|
||||
0
|
||||
#endif
|
||||
)) {
|
||||
// led strip needs the same timer as softserial
|
||||
featureClear(FEATURE_LED_STRIP);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue