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:
parent
98b1029bec
commit
e50aa21dd2
2 changed files with 299 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue