mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Merge pull request #10448 from etracer65/fix_cms_displayport_register
Only register CMS displayPort for SRXL and CRSF when appropriate
This commit is contained in:
commit
3ea8c657c0
3 changed files with 36 additions and 10 deletions
|
@ -92,7 +92,7 @@ int menuChainBack;
|
|||
|
||||
bool cmsDisplayPortRegister(displayPort_t *pDisplay)
|
||||
{
|
||||
if (cmsDeviceCount >= CMS_MAX_DEVICE) {
|
||||
if (!pDisplay || cmsDeviceCount >= CMS_MAX_DEVICE) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue