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
+2 -2
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.)