1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-25 14:42:21 +01:00

Warn when UART and logger operating on same bus (#803)

This commit is contained in:
Otto Winter
2019-10-27 12:27:46 +01:00
committed by GitHub
parent 5a67e72389
commit c1f5e04d6c
2 changed files with 19 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ class Logger : public Component {
/// Manually set the baud rate for serial, set to 0 to disable.
void set_baud_rate(uint32_t baud_rate);
uint32_t get_baud_rate() const { return baud_rate_; }
/// Get the UART used by the logger.
UARTSelection get_uart() const;