From 0a0cb41343b56de38c9bf8628e6263b19af8030d Mon Sep 17 00:00:00 2001 From: Hans Christian Olaussen <41271048+klutvott123@users.noreply.github.com> Date: Mon, 21 Mar 2022 23:43:08 +0100 Subject: [PATCH] Prevent sending telemetry when baud negotiation in progress --- src/main/telemetry/crsf.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/telemetry/crsf.c b/src/main/telemetry/crsf.c index 15ce87fab..b3c20a1f7 100644 --- a/src/main/telemetry/crsf.c +++ b/src/main/telemetry/crsf.c @@ -744,6 +744,13 @@ void handleCrsfTelemetry(timeUs_t currentTimeUs) if (!crsfTelemetryEnabled) { return; } + +#if defined(USE_CRSF_V3) + if (crsfBaudNegotiationInProgress()) { + return; + } +#endif + // Give the receiver a chance to send any outstanding telemetry data. // This needs to be done at high frequency, to enable the RX to send the telemetry frame // in between the RX frames.