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:
commit
85adc95fef
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