mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 01:05:10 +03:00
fix wrong length on telem mirror uart (#7874)
This commit is contained in:
parent
7de84b900b
commit
be7086711d
1 changed files with 2 additions and 2 deletions
|
@ -319,13 +319,13 @@ static void processMultiTelemetryPaket(const uint8_t * packet, uint8_t module)
|
||||||
|
|
||||||
#if defined(AUX_SERIAL)
|
#if defined(AUX_SERIAL)
|
||||||
if (g_eeGeneral.auxSerialMode == UART_MODE_TELEMETRY_MIRROR) {
|
if (g_eeGeneral.auxSerialMode == UART_MODE_TELEMETRY_MIRROR) {
|
||||||
for (uint8_t c=0; c < len; c++)
|
for (uint8_t c = 0; c < len + 2; c++)
|
||||||
auxSerialPutc(packet[c]);
|
auxSerialPutc(packet[c]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined(AUX2_SERIAL)
|
#if defined(AUX2_SERIAL)
|
||||||
if (g_eeGeneral.aux2SerialMode == UART_MODE_TELEMETRY_MIRROR) {
|
if (g_eeGeneral.aux2SerialMode == UART_MODE_TELEMETRY_MIRROR) {
|
||||||
for (uint8_t c=0; c < len; c++)
|
for (uint8_t c = 0; c < len + 2; c++)
|
||||||
aux2SerialPutc(packet[c]);
|
aux2SerialPutc(packet[c]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue