Extends UART change at runtime to ESP8266 (#6019)

This commit is contained in:
Edward Firmo
2024-01-09 01:45:46 +01:00
committed by GitHub
parent e3d146ee44
commit 2bb5343d27
3 changed files with 35 additions and 4 deletions
@@ -63,6 +63,21 @@ class ESP8266UartComponent : public UARTComponent, public Component {
uint32_t get_config();
/**
* Load the UART with the current settings.
* @param dump_config (Optional, default `true`): True for displaying new settings or
* false to change it quitely
*
* Example:
* ```cpp
* id(uart1).load_settings();
* ```
*
* This will load the current UART interface with the latest settings (baud_rate, parity, etc).
*/
void load_settings(bool dump_config) override;
void load_settings() override { this->load_settings(true); }
protected:
void check_logger_conflict() override;