Fix ESP32 serial issues

This commit is contained in:
Theo Arends 2020-10-31 17:53:12 +01:00
parent 57a3e7f88c
commit 404e34df36
1 changed files with 1 additions and 0 deletions

View File

@ -916,6 +916,7 @@ void SetSerialBegin(void) {
#ifdef ESP8266
Serial.begin(TasmotaGlobal.baudrate, (SerialConfig)pgm_read_byte(kTasmotaSerialConfig + Settings.serial_config));
#else // ESP32
delay(10); // Allow time to cleanup queues - if not used hangs ESP32
Serial.end();
delay(10); // Allow time to cleanup queues - if not used hangs ESP32
uint32_t config = pgm_read_dword(kTasmotaSerialConfig + Settings.serial_config);