From d73d163a58c5c159b25dbbd4ab9940f903594ba1 Mon Sep 17 00:00:00 2001 From: Pascal Langer Date: Tue, 17 Sep 2019 09:53:18 +0200 Subject: [PATCH] Update Validate.h --- Multiprotocol/Validate.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Multiprotocol/Validate.h b/Multiprotocol/Validate.h index a360016..6423613 100644 --- a/Multiprotocol/Validate.h +++ b/Multiprotocol/Validate.h @@ -250,12 +250,14 @@ #undef MULTI_STATUS #undef MULTI_TELEMETRY #undef SCANNER_TELEMETRY + #undef SCANNER_CC2500_INO #else - #if defined MULTI_TELEMETRY && not defined INVERT_TELEMETRY - #warning MULTI_TELEMETRY has been defined but not INVERT_TELEMETRY. They should be both enabled for OpenTX telemetry and status to work. + #if defined(MULTI_TELEMETRY) && defined(MULTI_STATUS) + #error You should choose either MULTI_TELEMETRY or MULTI_STATUS but not both. #endif - #if not defined(SCANNER_CC2500_INO) + #if not defined(SCANNER_CC2500_INO) || not defined(SCANNER_TELEMETRY) #undef SCANNER_TELEMETRY + #undef SCANNER_CC2500_INO #endif #if not defined(BAYANG_NRF24L01_INO) #undef BAYANG_HUB_TELEMETRY