From f3d1188d567cc1dcec820b9e0c5d6b18a507e65f Mon Sep 17 00:00:00 2001 From: Martin Budden Date: Sun, 20 Nov 2016 17:06:29 +0000 Subject: [PATCH] Only register dashboard with CMS if hardware is present --- src/main/io/dashboard.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/io/dashboard.c b/src/main/io/dashboard.c index 932af2e859..c0cca5a918 100644 --- a/src/main/io/dashboard.c +++ b/src/main/io/dashboard.c @@ -708,7 +708,9 @@ void dashboardInit(rxConfig_t *rxConfigToUse) displayPort = displayPortOledInit(); #if defined(CMS) - cmsDisplayPortRegister(displayPort); + if (dashboardPresent) { + cmsDisplayPortRegister(displayPort); + } #endif rxConfig = rxConfigToUse;