moving confusing around

This commit is contained in:
rusefillc 2022-09-19 12:32:45 -04:00
parent 8729d705c2
commit a9b149c262
1 changed files with 1 additions and 1 deletions

View File

@ -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<SensorType>(zeroBasedSensorIndex + static_cast<int>(SensorType::Aux1));
auto type = static_cast<SensorType>(zeroBasedSensorIndex + static_cast<int>(SensorType::AuxAnalog1));
return getSensor(l, type);
}