From f73b8661de5ee28718b64180a641be35ad5dbcb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Thu, 29 Dec 2022 21:34:18 +0100 Subject: [PATCH] Wait for 5 seconds for serial port on ESP32-S2/3 too... --- src/SerialConsole.cpp | 2 +- src/platform/esp32/main-esp32.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SerialConsole.cpp b/src/SerialConsole.cpp index e7355db29..0b6b9ee24 100644 --- a/src/SerialConsole.cpp +++ b/src/SerialConsole.cpp @@ -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) { diff --git a/src/platform/esp32/main-esp32.cpp b/src/platform/esp32/main-esp32.cpp index e36a8cfd8..2fcdf9318 100644 --- a/src/platform/esp32/main-esp32.cpp +++ b/src/platform/esp32/main-esp32.cpp @@ -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();