open q
This commit is contained in:
parent
72a2bdba66
commit
dcacef45ab
|
@ -51,6 +51,7 @@ static int getSensor(lua_State* l, SensorType type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int lua_getAuxAnalog(lua_State* l) {
|
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 sensorIndex = luaL_checkinteger(l, 1);
|
||||||
|
|
||||||
auto type = static_cast<SensorType>(sensorIndex + static_cast<int>(SensorType::Aux1));
|
auto type = static_cast<SensorType>(sensorIndex + static_cast<int>(SensorType::Aux1));
|
||||||
|
|
Loading…
Reference in New Issue