fix wrong length on telem mirror uart (#7874)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user