From f3abf77f3f1a429dc8fe97dd8ac9825a0efe7f6f Mon Sep 17 00:00:00 2001 From: Shubham Patil Date: Wed, 17 Aug 2022 13:31:13 +0530 Subject: [PATCH 1/2] [ESP32] Fix some incorrect log levels in lighting-app --- examples/lighting-app/esp32/main/AppTask.cpp | 2 +- examples/lighting-app/esp32/main/LEDWidget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/lighting-app/esp32/main/AppTask.cpp b/examples/lighting-app/esp32/main/AppTask.cpp index 5d3718855b8eba..09247ea26bc61a 100644 --- a/examples/lighting-app/esp32/main/AppTask.cpp +++ b/examples/lighting-app/esp32/main/AppTask.cpp @@ -161,7 +161,7 @@ void AppTask::UpdateClusterState() ESP_LOGE(TAG, "Updating on/off cluster failed: %x", status); } - ESP_LOGE(TAG, "Writting to Current Level cluster"); + ESP_LOGI(TAG, "Writting to Current Level cluster"); status = Clusters::LevelControl::Attributes::CurrentLevel::Set(kLightEndpointId, AppLED.GetLevel()); if (status != EMBER_ZCL_STATUS_SUCCESS) diff --git a/examples/lighting-app/esp32/main/LEDWidget.cpp b/examples/lighting-app/esp32/main/LEDWidget.cpp index 8eb1aa5114c857..12cbf0f6d3295a 100644 --- a/examples/lighting-app/esp32/main/LEDWidget.cpp +++ b/examples/lighting-app/esp32/main/LEDWidget.cpp @@ -126,7 +126,7 @@ void LEDWidget::DoSet(void) mStrip->refresh(mStrip, 100); } #else - ESP_LOGE(TAG, "DoSet to GPIO number %d", mGPIONum); + ESP_LOGI(TAG, "DoSet to GPIO number %d", mGPIONum); if (mGPIONum < GPIO_NUM_MAX) { ledc_set_duty(LEDC_LOW_SPEED_MODE, LEDC_CHANNEL_0, brightness); From 8ad518aae90431cc9d755bed241aeb255f3dfe37 Mon Sep 17 00:00:00 2001 From: Shubham Patil Date: Wed, 17 Aug 2022 14:39:23 +0530 Subject: [PATCH 2/2] fix typo --- examples/lighting-app/esp32/main/AppTask.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/lighting-app/esp32/main/AppTask.cpp b/examples/lighting-app/esp32/main/AppTask.cpp index 09247ea26bc61a..1af833792d0f71 100644 --- a/examples/lighting-app/esp32/main/AppTask.cpp +++ b/examples/lighting-app/esp32/main/AppTask.cpp @@ -152,7 +152,7 @@ void AppTask::ButtonPressCallback() void AppTask::UpdateClusterState() { - ESP_LOGI(TAG, "Writting to OnOff cluster"); + ESP_LOGI(TAG, "Writing to OnOff cluster"); // write the new on/off value EmberAfStatus status = Clusters::OnOff::Attributes::OnOff::Set(kLightEndpointId, AppLED.IsTurnedOn()); @@ -161,7 +161,7 @@ void AppTask::UpdateClusterState() ESP_LOGE(TAG, "Updating on/off cluster failed: %x", status); } - ESP_LOGI(TAG, "Writting to Current Level cluster"); + ESP_LOGI(TAG, "Writing to Current Level cluster"); status = Clusters::LevelControl::Attributes::CurrentLevel::Set(kLightEndpointId, AppLED.GetLevel()); if (status != EMBER_ZCL_STATUS_SUCCESS)