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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user