1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-07 11:20:28 +01:00

fix build error

This commit is contained in:
Tomasz Duda 2024-04-24 23:27:31 +02:00
parent 4ae3504117
commit 031dd54034

View File

@ -49,8 +49,10 @@ void Logger::write_header_(int level, const char *tag, int line) {
if (current_task == main_task_) {
this->printf_to_buffer_("%s[%s][%s:%03u]: ", color, letter, tag, line);
} else {
#if defined(USE_ESP32) || defined(USE_LIBRETINY)
#if defined(USE_ESP32)
const char *thread_name = pcTaskGetName(current_task);
#elif defined(USE_LIBRETINY)
const char *thread_name = pcTaskGetTaskName(current_task);
#elif defined(USE_ZEPHYR)
const char *thread_name = k_thread_name_get(current_task);
#else