Skip to content

Commit

Permalink
[ESP32] Fix some incorrect log levels in lighting-app (#21960)
Browse files Browse the repository at this point in the history
* [ESP32] Fix some incorrect log levels in lighting-app

* fix typo
  • Loading branch information
shubhamdp authored Aug 17, 2022
1 parent 3e1b7c9 commit 866e7ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/lighting-app/esp32/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion examples/lighting-app/esp32/main/LEDWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 866e7ee

Please sign in to comment.