1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

Only register dashboard with CMS if hardware is present

This commit is contained in:
Martin Budden 2016-11-20 17:06:29 +00:00
parent 1c3838320b
commit f3d1188d56

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;