This commit is contained in:
Tomasz Duda
2026-02-08 14:33:19 +01:00
parent 1e7eda1a67
commit 124e5d9898
3 changed files with 8 additions and 7 deletions
+1 -7
View File
@@ -12,17 +12,11 @@
#include "esphome/core/helpers.h"
#include "esphome/core/log.h"
#ifdef USE_ESPHOME_TASK_LOG_BUFFER
#ifdef USE_HOST
// all those headers are ifdef inside
#include "task_log_buffer_host.h"
#elif defined(USE_ESP32)
#include "task_log_buffer_esp32.h"
#elif defined(USE_LIBRETINY)
#include "task_log_buffer_libretiny.h"
#elif defined(USE_ZEPHYR)
#include "task_log_buffer_zephyr.h"
#endif
#endif
#ifdef USE_ARDUINO
#if defined(USE_ESP8266)
@@ -2,6 +2,8 @@
#include "task_log_buffer_zephyr.h"
#ifdef USE_ESPHOME_TASK_LOG_BUFFER
namespace esphome::logger {
__thread bool non_main_task_recursion_guard_;
@@ -113,3 +115,4 @@ void TaskLogBufferZephyr::release_message_main_loop() {
} // namespace esphome::logger
#endif
#endif
@@ -11,6 +11,8 @@ namespace esphome::logger {
// "0x" + 2 hex digits per byte + '\0'
static constexpr size_t MAX_POINTER_REPRESENTATION = 2 + sizeof(void *) * 2 + 1;
#ifdef USE_ESPHOME_TASK_LOG_BUFFER
extern __thread bool non_main_task_recursion_guard_;
class TaskLogBufferZephyr {
@@ -59,6 +61,8 @@ class TaskLogBufferZephyr {
const mpsc_pbuf_generic *current_token_{};
};
#endif
} // namespace esphome::logger
#endif