Skip to content

Commit

Permalink
fix(color): restore prior startup and shutdown behaviour (#4865)
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored Apr 9, 2024
1 parent 24bae0d commit fb45009
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions radio/src/gui/colorlcd/startup_shutdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void drawSleepBitmap()
} else {
shutdownWindow = new Window(MainWindow::instance(), {0, 0, LCD_W, LCD_H});
shutdownWindow->setWindowFlag(OPAQUE);
etx_solid_bg(shutdownWindow->getLvObj(), COLOR_BLACK_INDEX);
etx_solid_bg(shutdownWindow->getLvObj(), COLOR_THEME_PRIMARY1_INDEX);
}

(new StaticIcon(shutdownWindow, 0, 0, ICON_SHUTDOWN, COLOR_THEME_PRIMARY2))
Expand All @@ -221,7 +221,7 @@ void drawShutdownAnimation(uint32_t duration, uint32_t totalDuration,
if (shutdownWindow == nullptr) {
shutdownWindow = new Window(MainWindow::instance(), {0, 0, LCD_W, LCD_H});
shutdownWindow->setWindowFlag(OPAQUE);
etx_solid_bg(shutdownWindow->getLvObj(), COLOR_BLACK_INDEX);
etx_solid_bg(shutdownWindow->getLvObj(), COLOR_THEME_PRIMARY1_INDEX);

if (sdMounted() && !shutdownSplashImg)
shutdownSplashImg = BitmapBuffer::loadBitmap(
Expand Down
5 changes: 3 additions & 2 deletions radio/src/opentx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1482,8 +1482,9 @@ void edgeTxInit()

#if defined(GUI)
if (!calibration_needed && !(startOptions & OPENTX_START_NO_SPLASH)) {
if (!g_eeGeneral.dontPlayHello)
AUDIO_HELLO();
if (!g_eeGeneral.dontPlayHello) AUDIO_HELLO();

waitSplash();
}
#endif // defined(GUI)

Expand Down
2 changes: 0 additions & 2 deletions radio/src/tasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ TASK_FUNCTION(menusTask)

mixerTaskInit();

waitSplash();

#if defined(PWR_BUTTON_PRESS)
while (true) {
uint32_t pwr_check = pwrCheck();
Expand Down

0 comments on commit fb45009

Please sign in to comment.