diff --git a/esphome/components/logger/logger.h b/esphome/components/logger/logger.h index 3031d8a36d..117e9d54d0 100644 --- a/esphome/components/logger/logger.h +++ b/esphome/components/logger/logger.h @@ -184,7 +184,7 @@ class Logger : public Component { protected: void process_messages_(); - void write_msg_(const char *msg); + void write_msg_(const char *msg, size_t len); // Format a log message with printf-style arguments and write it to a buffer with header, footer, and null terminator // It's the caller's responsibility to initialize buffer_at (typically to 0)