Merge pull request #11103 from klutvott123/fix-telemetry-displayport-init

Fix telemetry displayport initialisation
This commit is contained in:
haslinghuis 2021-12-18 00:16:22 +01:00 committed by GitHub
commit 8cbd562dca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -772,12 +772,6 @@ void init(void)
}
#endif
#ifdef USE_TELEMETRY
if (featureIsEnabled(FEATURE_TELEMETRY)) {
telemetryInit();
}
#endif
#ifdef USE_ESC_SENSOR
if (featureIsEnabled(FEATURE_ESC_SENSOR)) {
escSensorInit();
@ -884,6 +878,12 @@ void init(void)
cmsInit();
#endif
#ifdef USE_TELEMETRY
if (featureIsEnabled(FEATURE_TELEMETRY)) {
telemetryInit();
}
#endif
#if (defined(USE_OSD) || (defined(USE_MSP_DISPLAYPORT) && defined(USE_CMS)))
displayPort_t *osdDisplayPort = NULL;
osdDisplayPortDevice_e osdDisplayPortDevice = OSD_DISPLAYPORT_DEVICE_NONE;