Skip to content

Commit 348438f

Browse files
authored
Update HardwareSerial.h
This should resolve issue espressif#476
1 parent 812d131 commit 348438f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: cores/esp32/HardwareSerial.h

+4
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ class HardwareSerial: public Stream
8686
{
8787
return write((uint8_t) n);
8888
}
89+
void setBaudRate(uint32_t baud)
90+
{
91+
uartSetBaudRate(_uart, baud);
92+
}
8993
uint32_t baudRate();
9094
operator bool() const;
9195

0 commit comments

Comments
 (0)