This commit is contained in:
rusefi 2021-11-10 19:24:17 -05:00
parent 72a2bdba66
commit dcacef45ab
1 changed files with 1 additions and 0 deletions

View File

@ -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<SensorType>(sensorIndex + static_cast<int>(SensorType::Aux1));