adjust for serial wait time during nRF52 bootup

This commit is contained in:
Thomas Göttgens
2022-04-02 16:02:26 +02:00
parent fd407a2a9e
commit 364d81e906
3 changed files with 8 additions and 1 deletions

View File

@@ -854,8 +854,9 @@ int32_t Screen::runOnce()
}
// Show boot screen for first 3 seconds, then switch to normal operation.
// serialSinceMsec adjusts for additional serial wait time during nRF52 bootup
static bool showingBootScreen = true;
if (showingBootScreen && (millis() > 5000)) {
if (showingBootScreen && (millis() > (5000 + serialSinceMsec))) {
DEBUG_MSG("Done with boot screen...\n");
stopBootScreen();
showingBootScreen = false;