Wait for 5 seconds for serial port on ESP32-S2/3 too...

This commit is contained in:
Thomas Göttgens 2022-12-29 21:34:18 +01:00
parent 1a949b7ca6
commit f73b8661de
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ SerialConsole::SerialConsole() : StreamAPI(&Port), RedirectablePrint(&Port), con
// setDestination(&noopPrint); for testing, try turning off 'all' debug output and see what leaks
Port.begin(SERIAL_BAUD);
#ifdef ARCH_NRF52
#if defined(ARCH_NRF52) || defined(CONFIG_IDF_TARGET_ESP32S2) || defined(CONFIG_IDF_TARGET_ESP32S3)
time_t timeout = millis();
while (!Port) {
if ((millis() - timeout) < 5000) {

View File

@ -114,7 +114,7 @@ void esp32Setup()
if (BLEOTA.isEmpty()) {
DEBUG_MSG("No OTA firmware available\n");
}else{
DEBUG_MSG("OTA firmware version %s\n", BLEOTA);
DEBUG_MSG("OTA firmware version %s\n", BLEOTA.c_str());
}
// enableModemSleep();