From 866e7eeca094d86cc4338651dfa8ee7f85961558 Mon Sep 17 00:00:00 2001 From: Shubham Patil Date: Thu, 18 Aug 2022 00:35:43 +0530 Subject: [PATCH] [ESP32] Fix some incorrect log levels in lighting-app (#21960) * [ESP32] Fix some incorrect log levels in lighting-app * fix typo --- examples/lighting-app/esp32/main/AppTask.cpp | 4 ++-- examples/lighting-app/esp32/main/LEDWidget.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/lighting-app/esp32/main/AppTask.cpp b/examples/lighting-app/esp32/main/AppTask.cpp index 5d3718855b8eba..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_LOGE(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) 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);