[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
+1
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);
}