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
1 changed files with 7 additions and 0 deletions

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.