chore(color): implement publish/subscribe messaging to simplify code and further code consolidation (#7032)
This commit is contained in:
+5
-5
@@ -33,7 +33,6 @@
|
||||
#include "tasks/mixer_task.h"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#include "LvglWrapper.h"
|
||||
#include "startup_shutdown.h"
|
||||
#endif
|
||||
|
||||
@@ -55,14 +54,15 @@ bool perMainEnabled = true;
|
||||
|
||||
static void menusTask()
|
||||
{
|
||||
#if defined(COLORLCD)
|
||||
LvglWrapper::instance();
|
||||
#endif
|
||||
|
||||
edgeTxInit();
|
||||
|
||||
mixerTaskInit();
|
||||
|
||||
#if defined(COLORLCD) && defined(RTC_BACKUP_RAM)
|
||||
if (UNEXPECTED_SHUTDOWN())
|
||||
drawFatalErrorScreen(STR_EMERGENCY_MODE);
|
||||
#endif
|
||||
|
||||
#if defined(PWR_BUTTON_PRESS)
|
||||
while (task_running()) {
|
||||
uint32_t pwr_check = pwrCheck();
|
||||
|
||||
Reference in New Issue
Block a user