Merge pull request #2317 from opentx/projectkk2glider/issue_2084_max_expos_for_next

Fixes #2084: wrong constant used to limit maximum number of expos (po…
This commit is contained in:
Bertrand Songis
2015-05-17 19:39:28 +02:00
+1 -1
View File
@@ -778,7 +778,7 @@ static int luaModelInsertInput(lua_State *L)
unsigned int first = getFirstInput(chn);
unsigned int count = getInputsCountFromFirst(chn, first);
if (chn<MAX_INPUTS && getExpoMixCount(1)<MAX_INPUTS && idx<=count) {
if (chn<MAX_INPUTS && getExpoMixCount(1)<MAX_EXPOS && idx<=count) {
idx = first + idx;
s_currCh = chn + 1;
insertExpoMix(1, idx);