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:
parent
1c3838320b
commit
f3d1188d56
1 changed files with 3 additions and 1 deletions
|
@ -708,7 +708,9 @@ void dashboardInit(rxConfig_t *rxConfigToUse)
|
|||
|
||||
displayPort = displayPortOledInit();
|
||||
#if defined(CMS)
|
||||
cmsDisplayPortRegister(displayPort);
|
||||
if (dashboardPresent) {
|
||||
cmsDisplayPortRegister(displayPort);
|
||||
}
|
||||
#endif
|
||||
|
||||
rxConfig = rxConfigToUse;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue