Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions radio/src/gui/colorlcd/startup_shutdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,17 @@ void waitSplash()
inactivityCheckInputs();
splashStartTime += SPLASH_TIMEOUT;

#if defined(PWR_BUTTON_DUAL)
// Wait for dual power buttons to be released
#if defined(PWR_BUTTON_PRESS)
// Wait for the power button(s) to be released,
// otherwise pwrCheck() starts the shutdown countdown
while (pwrPressed()) {
WDG_RESET();
sleep_ms(10);
}
#if defined(PWR_BUTTON_DUAL)
// Kill SYS and/or MDL events
killAllEvents();
#endif
MainWindow::instance()->run();
#endif

Expand Down
Loading