diff --git a/firmware/controllers/lua/lua_hooks.cpp b/firmware/controllers/lua/lua_hooks.cpp index a88f1d7532..809c1983cb 100644 --- a/firmware/controllers/lua/lua_hooks.cpp +++ b/firmware/controllers/lua/lua_hooks.cpp @@ -58,7 +58,7 @@ 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 zeroBasedSensorIndex = luaL_checkinteger(l, 1); - auto type = static_cast(zeroBasedSensorIndex + static_cast(SensorType::Aux1)); + auto type = static_cast(zeroBasedSensorIndex + static_cast(SensorType::AuxAnalog1)); return getSensor(l, type); }