Merge pull request #6764 from jflyper/bfdev-avoid-inactive-telemetry-from-registering-as-displayport-device
Avoid inactive telemetry port from being registered as a displayport …
This commit is contained in:
commit
d414cf3b5c
|
@ -432,6 +432,10 @@ void initCrsfTelemetry(void)
|
|||
// and feature is enabled, if so, set CRSF telemetry enabled
|
||||
crsfTelemetryEnabled = crsfRxIsActive();
|
||||
|
||||
if (!crsfTelemetryEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
deviceInfoReplyPending = false;
|
||||
#if defined(USE_MSP_OVER_TELEMETRY)
|
||||
mspReplyPending = false;
|
||||
|
|
|
@ -351,6 +351,11 @@ void freeHoTTTelemetryPort(void)
|
|||
void initHoTTTelemetry(void)
|
||||
{
|
||||
portConfig = findSerialPortConfig(FUNCTION_TELEMETRY_HOTT);
|
||||
|
||||
if (!portConfig) {
|
||||
return;
|
||||
}
|
||||
|
||||
hottPortSharing = determinePortSharing(portConfig, FUNCTION_TELEMETRY_HOTT);
|
||||
|
||||
#if defined (USE_HOTT_TEXTMODE) && defined (USE_CMS)
|
||||
|
|
Loading…
Reference in New Issue