removes delay(10) from HardwareSerial::end() (#8634)

This commit is contained in:
Rodrigo Garcia 2023-09-15 06:18:26 -03:00 committed by GitHub
parent e079e22848
commit cd409b2168
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -446,7 +446,7 @@ void HardwareSerial::end(bool fullyTerminate)
_rxPin = _txPin = _ctsPin = _rtsPin = -1;
}
delay(10);
uartEnd(_uart);
_uart = 0;
_destroyEventTask();