From f881418fe46d9d0e91356a2b74b1ba00f283fd35 Mon Sep 17 00:00:00 2001 From: bsongis Date: Wed, 18 Jul 2012 14:03:54 +0000 Subject: [PATCH] [ersky9x] compilation error when no FRSKY and SDCARD enabled --- src/open9x.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/open9x.cpp b/src/open9x.cpp index 4f0d5a37b..928192188 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -1615,6 +1615,7 @@ void playValue(uint8_t idx) case NUM_XCHNRAW+TELEM_TM2-1: playDuration(val); break; +#if defined(FRSKY) case NUM_XCHNRAW+TELEM_MIN_A1-1: case NUM_XCHNRAW+TELEM_MIN_A2-1: idx -= TELEM_MIN_A1-1-MAX_TIMERS; @@ -1707,6 +1708,13 @@ void playValue(uint8_t idx) playNumber(val, unit == UNIT_RAW ? 0 : unit+1); break; } +#else + default: + { + playNumber(val, 0); + break; + } +#endif } } #endif