Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ESP32] Fix some incorrect log levels in lighting-app #21960

Merged
merged 2 commits into from
Aug 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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