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

raspi-portduino
Thomas Göttgens 2022-12-29 21:34:18 +01:00
rodzic 1a949b7ca6
commit f73b8661de
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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 // setDestination(&noopPrint); for testing, try turning off 'all' debug output and see what leaks
Port.begin(SERIAL_BAUD); 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(); time_t timeout = millis();
while (!Port) { while (!Port) {
if ((millis() - timeout) < 5000) { if ((millis() - timeout) < 5000) {

Wyświetl plik

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