sforkowany z mirror/meshtastic-firmware
Wait for 5 seconds for serial port on ESP32-S2/3 too...
rodzic
1a949b7ca6
commit
f73b8661de
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
Ładowanie…
Reference in New Issue