1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Merge pull request #1624 from martinbudden/bf_dashboard_cms_fix

Only register dashboard with CMS if hardware is present
This commit is contained in:
Martin Budden 2016-11-20 19:32:46 +01:00 committed by GitHub
commit 85adc95fef

View file

@ -708,7 +708,9 @@ void dashboardInit(rxConfig_t *rxConfigToUse)
displayPort = displayPortOledInit();
#if defined(CMS)
cmsDisplayPortRegister(displayPort);
if (dashboardPresent) {
cmsDisplayPortRegister(displayPort);
}
#endif
rxConfig = rxConfigToUse;