SerialDebug NRF
On slow systems, it takes up to 5 seconds to init serial
This commit is contained in:
1 parent
62337aa4b6
commit
c8254f9ec8
1 file changed
+1
-1
@@ -31,7 +31,7 @@ SerialConsole::SerialConsole() : StreamAPI(&Port), RedirectablePrint(&Port)
|
||||
#ifdef NRF52_SERIES
|
||||
time_t timeout = millis();
|
||||
while (!Port) {
|
||||
if ((millis() - timeout) < 2000) {
|
||||
if ((millis() - timeout) < 5000) {
|
||||
delay(100);
|
||||
} else {
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user