mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Code tidy and addition of GPL headers
This commit is contained in:
parent
31b6e7e024
commit
a7a428a5bb
41 changed files with 424 additions and 180 deletions
|
@ -83,6 +83,7 @@ static uint32_t nextDisplayUpdateAt = 0;
|
|||
static bool dashboardPresent = false;
|
||||
|
||||
static rxConfig_t *rxConfig;
|
||||
static displayPort_t *displayPort;
|
||||
|
||||
#define PAGE_TITLE_LINE_COUNT 1
|
||||
|
||||
|
@ -588,7 +589,7 @@ void dashboardUpdate(uint32_t currentTime)
|
|||
static uint8_t previousArmedState = 0;
|
||||
|
||||
#ifdef OLEDCMS
|
||||
if (oledDisplayPort.inCMS) {
|
||||
if (displayIsOpen(displayPort)) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
@ -704,8 +705,9 @@ void dashboardInit(rxConfig_t *rxConfigToUse)
|
|||
resetDisplay();
|
||||
delay(200);
|
||||
|
||||
displayPort = displayPortOledInit();
|
||||
#if defined(CMS) && defined(OLEDCMS)
|
||||
displayPortOledInit();
|
||||
cmsDisplayPortRegister(displayPort);
|
||||
#endif
|
||||
|
||||
rxConfig = rxConfigToUse;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue