mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-03 19:38:30 +02:00
Support advanced UART customization (#4465)
* Add methods to get hardware uart details. * Fix `setRxBufferSize` error. --------- Co-authored-by: Your Name <you@example.com>
This commit is contained in:
@@ -30,6 +30,9 @@ class RP2040UartComponent : public UARTComponent, public Component {
|
||||
|
||||
uint16_t get_config();
|
||||
|
||||
bool is_hw_serial() { return this->hw_serial_; }
|
||||
HardwareSerial *get_hw_serial() { return this->serial_; }
|
||||
|
||||
protected:
|
||||
void check_logger_conflict() override {}
|
||||
bool hw_serial_{false};
|
||||
|
||||
Reference in New Issue
Block a user