adjust for serial wait time during nRF52 bootup

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

No files matched your search

+2 -1
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;