1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 08:45:36 +03:00

Prevent sending telemetry when baud negotiation in progress

This commit is contained in:
Hans Christian Olaussen 2022-03-21 23:43:08 +01:00
parent e282744997
commit 0a0cb41343

View file

@ -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.