@@ -144,6 +144,16 @@ extern "C" void TELEMETRY_USART_IRQHandler(void)
|
||||
}
|
||||
else {
|
||||
telemetryFifo.push(data);
|
||||
#if defined(LUA)
|
||||
if (telemetryProtocol == PROTOCOL_FRSKY_SPORT) {
|
||||
static uint8_t prevdata;
|
||||
if (prevdata == 0x7E && data == luaOutputTelemetryPacket.physicalId) {
|
||||
sportSendLuaPacket(luaOutputTelemetryPacket);
|
||||
luaOutputTelemetryPacket.physicalId = 0x7E;
|
||||
}
|
||||
prevdata = data;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
status = TELEMETRY_USART->SR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user