Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cores/esp32/HardwareSerial.cpp
Original file line numberDiff line numberDiff line change
Expand Up@@ -73,6 +73,11 @@ void HardwareSerial::begin(unsigned long baud, uint32_t config, int8_t rxPin, in
}
}

voidHardwareSerial::updateBaudRate(unsignedlong baud)
{
uartSetBaudRate(_uart, baud);
}

voidHardwareSerial::end()
{
if(uartGetDebug() == _uart_nr){
Expand Down
1 change: 1 addition & 0 deletions cores/esp32/HardwareSerial.h
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,6 +57,7 @@ class HardwareSerial: public Stream

voidbegin(unsignedlong baud, uint32_t config=SERIAL_8N1, int8_t rxPin=-1, int8_t txPin=-1, bool invert=false, unsignedlong timeout_ms = 20000UL);
voidend();
voidupdateBaudRate(unsignedlong baud);
intavailable(void);
intavailableForWrite(void);
intpeek(void);
Expand Down