Added support for Lemon-Rx DSMP

This commit is contained in:
Raphael Coeffic
2022-03-24 10:40:17 +01:00
committed by Raphael Coeffic
parent f09c10b49d
commit 9d5cd1876c
36 changed files with 630 additions and 392 deletions
+10 -4
View File
@@ -122,11 +122,14 @@ void processTelemetryData(uint8_t data)
}
#endif
#if defined(MULTIMODULE)
if (telemetryProtocol == PROTOCOL_TELEMETRY_SPEKTRUM) {
processSpektrumTelemetryData(EXTERNAL_MODULE, data, telemetryRxBuffer, telemetryRxBufferCount);
if (telemetryProtocol == PROTOCOL_TELEMETRY_SPEKTRUM ||
telemetryProtocol == PROTOCOL_TELEMETRY_DSMP) {
processSpektrumTelemetryData(EXTERNAL_MODULE, data, telemetryRxBuffer,
telemetryRxBufferCount);
return;
}
#if defined(MULTIMODULE)
if (telemetryProtocol == PROTOCOL_TELEMETRY_FLYSKY_IBUS) {
processFlySkyTelemetryData(data, telemetryRxBuffer, telemetryRxBufferCount);
return;
@@ -489,7 +492,10 @@ void telemetryInit(uint8_t protocol)
telemetryPortSetDirectionInput();
}
#endif
else if (protocol == PROTOCOL_TELEMETRY_DSMP) {
// soft serial
telemetryPortInvertedInit(115200);
}
else {
telemetryPortInit(FRSKY_SPORT_BAUDRATE, TELEMETRY_SERIAL_WITHOUT_DMA);
#if defined(LUA)