From dcacef45abb2ea014e4e83c55e4096ad8f15cecb Mon Sep 17 00:00:00 2001 From: rusefi Date: Wed, 10 Nov 2021 19:24:17 -0500 Subject: [PATCH] open q --- firmware/controllers/lua/lua_hooks.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/controllers/lua/lua_hooks.cpp b/firmware/controllers/lua/lua_hooks.cpp index a825f9408e..66368524d6 100644 --- a/firmware/controllers/lua/lua_hooks.cpp +++ b/firmware/controllers/lua/lua_hooks.cpp @@ -51,6 +51,7 @@ static int getSensor(lua_State* l, SensorType type) { } static int lua_getAuxAnalog(lua_State* l) { + // todo: shall we use HUMAN_INDEX since UI goes from 1 and Lua loves going from 1? auto sensorIndex = luaL_checkinteger(l, 1); auto type = static_cast(sensorIndex + static_cast(SensorType::Aux1));