mirror of
https://github.com/opentx/opentx.git
synced 2025-07-15 20:35:17 +03:00
S.PORT Push from Lua was not working
This commit is contained in:
parent
3923edacc9
commit
0feceff635
1 changed files with 2 additions and 2 deletions
|
@ -471,8 +471,8 @@ static int luaPXX2TelemetryPush(lua_State * L)
|
||||||
}
|
}
|
||||||
else if (isTelemetryOutputBufferAvailable()) {
|
else if (isTelemetryOutputBufferAvailable()) {
|
||||||
SportTelemetryPacket packet;
|
SportTelemetryPacket packet;
|
||||||
uint8_t module = getDataId(luaL_checkunsigned(L, 1));
|
uint8_t module = luaL_checkunsigned(L, 1);
|
||||||
uint8_t receiver = getDataId(luaL_checkunsigned(L, 2));
|
uint8_t receiver = luaL_checkunsigned(L, 2);
|
||||||
uint8_t rx_uid = g_model.moduleData[module].pxx2.getReceiverSlot(receiver);
|
uint8_t rx_uid = g_model.moduleData[module].pxx2.getReceiverSlot(receiver);
|
||||||
if (rx_uid > 0) {
|
if (rx_uid > 0) {
|
||||||
// TODO add more controls (module started, module = PXX2, etc.)
|
// TODO add more controls (module started, module = PXX2, etc.)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue