From a2aa7c62c2e704a5332d3c3c9e410b0195968538 Mon Sep 17 00:00:00 2001 From: "romolo.manfredini@gmail.com" Date: Mon, 20 May 2013 21:03:48 +0000 Subject: [PATCH] fix compilation error for sky9x --- src/opentx.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/opentx.h b/src/opentx.h index 709de763e..1258303f5 100644 --- a/src/opentx.h +++ b/src/opentx.h @@ -476,6 +476,7 @@ enum EnumKeys { #elif defined(PCBSKY9X) #define NUM_PORT1_CHANNELS() (IS_PXX_PROTOCOL(g_model.protocol) ? 8 : (IS_DSM2_PROTOCOL(g_model.protocol) ? 6 : (8+g_model.moduleData[0].channelsCount))) #define NUM_PORT2_CHANNELS() (8+g_model.moduleData[1].channelsCount) + #define NUM_CHANNELS(idx) (idx==0 ? NUM_PORT1_CHANNELS() : (8+g_model.moduleData[idx].channelsCount)) #endif #include "lcd.h"