From 29b8b2685c2567b72fd438e10b1ff8ed226db129 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Mon, 15 Feb 2016 21:48:15 +0100 Subject: [PATCH] Fixes #3285: only first 32 input lines (out of 64) were accessible in Lua --- radio/src/lua/api_model.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/lua/api_model.cpp b/radio/src/lua/api_model.cpp index bf5ad5bec..d2e4dd691 100644 --- a/radio/src/lua/api_model.cpp +++ b/radio/src/lua/api_model.cpp @@ -278,7 +278,7 @@ static int luaModelResetTimer(lua_State *L) static unsigned int getFirstInput(unsigned int chn) { - for (unsigned int i=0; isrcRaw || expo->chn >= chn) { return i; @@ -290,7 +290,7 @@ static unsigned int getFirstInput(unsigned int chn) static unsigned int getInputsCountFromFirst(unsigned int chn, unsigned int first) { unsigned int count = 0; - for (unsigned int i=first; isrcRaw || expo->chn!=chn) break; count++;