1
0
Fork 0
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:
Michael Keller 2021-01-16 10:14:09 +08:00 committed by GitHub
commit 3ea8c657c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 10 deletions

View file

@ -92,7 +92,7 @@ int menuChainBack;
bool cmsDisplayPortRegister(displayPort_t *pDisplay)
{
if (cmsDeviceCount >= CMS_MAX_DEVICE) {
if (!pDisplay || cmsDeviceCount >= CMS_MAX_DEVICE) {
return false;
}