1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-16 14:55:50 +00:00

Merge branch 'integration' into memory_api

This commit is contained in:
J. Nick Koston
2025-11-15 18:31:34 -06:00

View File

@@ -231,8 +231,7 @@ class Logger : public Component {
}
// Helper to write tx_buffer_ to console if logging is enabled
// offset: starting position in tx_buffer_ (default 0)
// length: pointer to length of message at offset (updated with newline if added)
// INTERNAL USE ONLY - offset > 0 requires length parameter to be non-null
inline void HOT write_tx_buffer_to_console_(uint32_t offset = 0, uint16_t *length = nullptr) {
if (this->baud_rate_ > 0) {
uint16_t *len_ptr = length ? length : &this->tx_buffer_at_;