diff --git a/examples/all-clusters-app/esp32/main/CHIPDeviceManager.cpp b/examples/all-clusters-app/esp32/main/CHIPDeviceManager.cpp index 59f822bb017cd9..b53dea2de9d10b 100644 --- a/examples/all-clusters-app/esp32/main/CHIPDeviceManager.cpp +++ b/examples/all-clusters-app/esp32/main/CHIPDeviceManager.cpp @@ -32,6 +32,8 @@ #include #include +#include "esp_log.h" + using namespace ::chip; namespace chip { @@ -101,7 +103,7 @@ void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath & { TaskHandle_t task = xTaskGetCurrentTaskHandle(); const char * name = pcTaskGetName(task); - if (!strcmp(name, "CHIP")) + if (strcmp(name, "CHIP")) { ESP_LOGE("all-clusters-app", "Attribute changed on non-Matter task '%s'\n", name); }