mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Only register dashboard with CMS if hardware is present
This commit is contained in:
parent
1c3838320b
commit
f3d1188d56
1 changed files with 3 additions and 1 deletions
|
@ -708,7 +708,9 @@ void dashboardInit(rxConfig_t *rxConfigToUse)
|
||||||
|
|
||||||
displayPort = displayPortOledInit();
|
displayPort = displayPortOledInit();
|
||||||
#if defined(CMS)
|
#if defined(CMS)
|
||||||
|
if (dashboardPresent) {
|
||||||
cmsDisplayPortRegister(displayPort);
|
cmsDisplayPortRegister(displayPort);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rxConfig = rxConfigToUse;
|
rxConfig = rxConfigToUse;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue