Fix channel count on dsm2 module, purely cosmetic (closes issue #3673) (#3689)

Taranis menu always use 8 channels as default opposed to 9x and Horus, which use the maximum number as default channel count (which is 6 on dsm2). This commit does not change that logic.
This commit is contained in:
Arne Schwabe
2016-08-04 16:45:23 +02:00
committed by Bertrand Songis
parent d24f60f68b
commit 6559456534
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -404,7 +404,8 @@ void memswap(void * a, void * b, uint8_t size);
#endif
#if defined(CPUARM)
static const int8_t maxChannelsModules[] = { 0, 8, 8, -2, 8 }; // relative to 8!
// Order is the same as in enum Protocols in myeeprom.h (none, ppm, xjt, dsm, crossfire, multi)
static const int8_t maxChannelsModules[] = { 0, 8, 8, -2, 8, 8 }; // relative to 8!
static const int8_t maxChannelsXJT[] = { 0, 8, 0, 4 }; // relative to 8!
#define MAX_TRAINER_CHANNELS() (8)
#endif