From 6b0fea5952da024c1417e60cfb03cbcbabee73f4 Mon Sep 17 00:00:00 2001 From: Petr Ledvina Date: Thu, 29 Jan 2015 14:40:14 +0100 Subject: [PATCH] simplify `#ifdef`s --- src/main/config/config.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/config/config.c b/src/main/config/config.c index b489ff3bd..03ade6228 100644 --- a/src/main/config/config.c +++ b/src/main/config/config.c @@ -723,16 +723,12 @@ void validateAndFixConfig(void) #if defined(LED_STRIP) && (defined(USE_SOFTSERIAL1) || defined(USE_SOFTSERIAL2)) if (feature(FEATURE_SOFTSERIAL) && ( + 0 #ifdef USE_SOFTSERIAL1 - (LED_STRIP_TIMER == SOFTSERIAL_1_TIMER) -#else - 0 + || (LED_STRIP_TIMER == SOFTSERIAL_1_TIMER) #endif - || #ifdef USE_SOFTSERIAL2 - (LED_STRIP_TIMER == SOFTSERIAL_2_TIMER) -#else - 0 + || (LED_STRIP_TIMER == SOFTSERIAL_2_TIMER) #endif )) { // led strip needs the same timer as softserial