1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-14 20:10:08 +03:00

S.PORT Push from Lua was not working

This commit is contained in:
Bertrand Songis 2019-03-28 11:23:54 +01:00
parent 3923edacc9
commit 0feceff635

View file

@ -471,8 +471,8 @@ static int luaPXX2TelemetryPush(lua_State * L)
}
else if (isTelemetryOutputBufferAvailable()) {
SportTelemetryPacket packet;
uint8_t module = getDataId(luaL_checkunsigned(L, 1));
uint8_t receiver = getDataId(luaL_checkunsigned(L, 2));
uint8_t module = luaL_checkunsigned(L, 1);
uint8_t receiver = luaL_checkunsigned(L, 2);
uint8_t rx_uid = g_model.moduleData[module].pxx2.getReceiverSlot(receiver);
if (rx_uid > 0) {
// TODO add more controls (module started, module = PXX2, etc.)