mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-29 10:17:15 +02:00
HardwareSerial - add changeBaudRate method (#2223)
* Add updateBaudRate to hardware serial * remove flush * Fix tab
This commit is contained in:
committed by
Me No Dev
parent
4f9a90fa0e
commit
5af139bb74
@ -73,6 +73,11 @@ void HardwareSerial::begin(unsigned long baud, uint32_t config, int8_t rxPin, in
|
||||
}
|
||||
}
|
||||
|
||||
void HardwareSerial::updateBaudRate(unsigned long baud)
|
||||
{
|
||||
uartSetBaudRate(_uart, baud);
|
||||
}
|
||||
|
||||
void HardwareSerial::end()
|
||||
{
|
||||
if(uartGetDebug() == _uart_nr) {
|
||||
|
Reference in New Issue
Block a user