1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-18 11:12:20 +01:00

Update esphome/components/logger/logger.h

This commit is contained in:
J. Nick Koston
2025-06-23 09:01:21 +02:00
committed by GitHub
parent f036989361
commit 9f489c9f27

View File

@@ -359,7 +359,7 @@ class Logger : public Component {
this->write_body_to_buffer_(ESPHOME_LOG_RESET_COLOR, RESET_COLOR_LEN, buffer, buffer_at, buffer_size);
}
#ifdef USE_ESPHOME_TASK_LOG_BUFFER
#ifdef USE_ESP32
// Disable loop when task buffer is empty (with USB CDC check)
inline void disable_loop_when_buffer_empty_() {
// Thread safety note: This is safe even if another task calls enable_loop_soon_any_context()