Skip to content

Commit

Permalink
On the fly baud rate access to uart HAL
Browse files Browse the repository at this point in the history
This should resolve issue espressif#476
  • Loading branch information
terryjmyers authored Jan 5, 2019
1 parent 812d131 commit 3dc713c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cores/esp32/HardwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ class HardwareSerial: public Stream
{
return write((uint8_t) n);
}
void setBaudRate(uint32_t baud)
{
uartSetBaudRate(_uart, baud);
}
uint32_t baudRate();
operator bool() const;

Expand Down

0 comments on commit 3dc713c

Please sign in to comment.