1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-24 22:22:22 +01:00

dump config after logging CDC port is opened by host (#6169)

This commit is contained in:
tomaszduda23
2024-03-10 23:43:33 +01:00
committed by GitHub
parent 6a46548a8b
commit d4489ac373
2 changed files with 22 additions and 1 deletions

View File

@@ -56,7 +56,9 @@ enum UARTSelection {
class Logger : public Component {
public:
explicit Logger(uint32_t baud_rate, size_t tx_buffer_size);
#ifdef USE_LOGGER_USB_CDC
void loop() override;
#endif
/// 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_; }