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

[PXX2] Telemetry push fix

This commit is contained in:
Bertrand Songis 2019-03-21 10:00:52 +01:00
parent 725388b83e
commit 471d1c6f53
5 changed files with 18 additions and 8 deletions

View file

@ -480,6 +480,7 @@ static int luaPXX2TelemetryPush(lua_State * L)
packet.primId = luaL_checkunsigned(L, 4);
packet.dataId = luaL_checkunsigned(L, 5);
packet.value = luaL_checkunsigned(L, 6);
// TODO we could avoid this new copy
pushPXX2TelemetryPacket(module, rx_uid - 1, &packet);
lua_pushboolean(L, true);
}