1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-15 12:25:12 +03:00

[Crossfire] Devices parameters script started

This commit is contained in:
Bertrand Songis 2016-06-16 11:53:34 +02:00
parent 98b1029bec
commit e50aa21dd2
2 changed files with 299 additions and 1 deletions

View file

@ -357,7 +357,7 @@ static int luaCrossfireTelemetryPop(lua_State * L)
lua_pushnumber(L, packet.crossfire.command);
lua_newtable(L);
for (int i=0; i<packet.crossfire.length; i++) {
lua_pushinteger(L, i);
lua_pushinteger(L, i+1);
lua_pushinteger(L, packet.crossfire.data[i]);
lua_settable(L, -3);
}