mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Merge pull request #11103 from klutvott123/fix-telemetry-displayport-init
Fix telemetry displayport initialisation
This commit is contained in:
commit
8cbd562dca
1 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue