mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-27 02:05:31 +03:00
simplify #ifdef
s
This commit is contained in:
parent
e56f46a756
commit
6b0fea5952
1 changed files with 3 additions and 7 deletions
|
@ -723,16 +723,12 @@ void validateAndFixConfig(void)
|
||||||
|
|
||||||
#if defined(LED_STRIP) && (defined(USE_SOFTSERIAL1) || defined(USE_SOFTSERIAL2))
|
#if defined(LED_STRIP) && (defined(USE_SOFTSERIAL1) || defined(USE_SOFTSERIAL2))
|
||||||
if (feature(FEATURE_SOFTSERIAL) && (
|
if (feature(FEATURE_SOFTSERIAL) && (
|
||||||
|
0
|
||||||
#ifdef USE_SOFTSERIAL1
|
#ifdef USE_SOFTSERIAL1
|
||||||
(LED_STRIP_TIMER == SOFTSERIAL_1_TIMER)
|
|| (LED_STRIP_TIMER == SOFTSERIAL_1_TIMER)
|
||||||
#else
|
|
||||||
0
|
|
||||||
#endif
|
#endif
|
||||||
||
|
|
||||||
#ifdef USE_SOFTSERIAL2
|
#ifdef USE_SOFTSERIAL2
|
||||||
(LED_STRIP_TIMER == SOFTSERIAL_2_TIMER)
|
|| (LED_STRIP_TIMER == SOFTSERIAL_2_TIMER)
|
||||||
#else
|
|
||||||
0
|
|
||||||
#endif
|
#endif
|
||||||
)) {
|
)) {
|
||||||
// led strip needs the same timer as softserial
|
// led strip needs the same timer as softserial
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue