diff --git a/cores/esp32/HardwareSerial.cpp b/cores/esp32/HardwareSerial.cpp index e2b12bda3f4..885e977f912 100644 --- a/cores/esp32/HardwareSerial.cpp +++ b/cores/esp32/HardwareSerial.cpp @@ -446,7 +446,7 @@ void HardwareSerial::end(bool fullyTerminate) _rxPin = _txPin = _ctsPin = _rtsPin = -1; } - delay(10); + uartEnd(_uart); _uart = 0; _destroyEventTask();