chore(firmware): cleanup legacy code and '#define' entries (#6735)

This commit is contained in:
philmoz
2025-10-30 16:31:41 +10:00
committed by GitHub
parent 4101d3fe0b
commit 2faf1278ca
52 changed files with 57 additions and 333 deletions
+5 -5
View File
@@ -28,7 +28,7 @@
#include "edgetx.h"
#include "lua/lua_states.h"
#if defined(LIBOPENUI)
#if defined(COLORLCD)
#include "LvglWrapper.h"
#include "view_main.h"
#include "startup_shutdown.h"
@@ -58,7 +58,7 @@ uint8_t mainRequestFlags = 0;
static bool _usbDisabled = false;
#if defined(LIBOPENUI)
#if defined(COLORLCD)
static Menu* _usbMenu = nullptr;
void closeUsbMenu()
@@ -539,7 +539,7 @@ void perMain()
}
if (usbPlugged() && getSelectedUsbMode() == USB_MASS_STORAGE_MODE) {
#if defined(LIBOPENUI)
#if defined(COLORLCD)
LvglWrapper::instance()->run();
usbConnectedWindow->checkEvents();
#else
@@ -555,7 +555,7 @@ void perMain()
checkFailsafeMulti();
#endif
#if !defined(LIBOPENUI)
#if !defined(COLORLCD)
event_t evt = getEvent();
#endif
@@ -565,7 +565,7 @@ void perMain()
#if defined(GUI)
DEBUG_TIMER_START(debugTimerGuiMain);
#if defined(LIBOPENUI)
#if defined(COLORLCD)
guiMain(0);
// For color screens show a popup deferred from another task
show_ui_popup();