Skip to content

Commit

Permalink
Restyled by whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Jun 12, 2022
1 parent 20ebc15 commit 7889c07
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/lighting-app/ameba/main/LEDWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void LEDWidget::DoSet(bool state)
{
bool stateChange = (mState != state);
mState = state;

if (stateChange)
{
gpio_write(&gpio_led, state);
Expand Down
4 changes: 1 addition & 3 deletions examples/lighting-app/esp32/main/Button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void Button::Init(){
//install gpio isr service
gpio_install_isr_service(ESP_INTR_FLAG_DEFAULT);
//hook isr handler for specific gpio pin
gpio_isr_handler_add(static_cast<gpio_num_t>(GPIO_INPUT_IO_0), gpio_isr_handler, (void*) GPIO_INPUT_IO_0);
gpio_isr_handler_add(static_cast<gpio_num_t>(GPIO_INPUT_IO_0), gpio_isr_handler, (void*) GPIO_INPUT_IO_0);

ESP_LOGI(TAG, "Button initialized..");
}
Expand All @@ -43,5 +43,3 @@ void Button::SetButtonPressCallback(ButtonPressCallback button_callback){
button_press_handler = button_callback;
}
}


2 changes: 1 addition & 1 deletion examples/lighting-app/esp32/main/DeviceCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ void emberAfOnOffClusterInitCallback(EndpointId endpoint)
{
ESP_LOGI(TAG, "emberAfOnOffClusterInitCallback");
GetAppTask().UpdateClusterState();
}
}
2 changes: 1 addition & 1 deletion examples/lighting-app/esp32/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,5 @@ extern "C" void app_main()
{
ESP_LOGE(TAG, "GetAppTask().StartAppTask() failed : %s", ErrorStr(error));
}

}

0 comments on commit 7889c07

Please sign in to comment.