From 7889c075f504b958403cd115daaeec980b9383ad Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Sun, 12 Jun 2022 15:35:19 +0000 Subject: [PATCH] Restyled by whitespace --- examples/lighting-app/ameba/main/LEDWidget.cpp | 2 +- examples/lighting-app/esp32/main/Button.cpp | 4 +--- examples/lighting-app/esp32/main/DeviceCallbacks.cpp | 2 +- examples/lighting-app/esp32/main/main.cpp | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/lighting-app/ameba/main/LEDWidget.cpp b/examples/lighting-app/ameba/main/LEDWidget.cpp index 231f80b861aca9..a050f4a4d4f0f0 100755 --- a/examples/lighting-app/ameba/main/LEDWidget.cpp +++ b/examples/lighting-app/ameba/main/LEDWidget.cpp @@ -52,7 +52,7 @@ void LEDWidget::DoSet(bool state) { bool stateChange = (mState != state); mState = state; - + if (stateChange) { gpio_write(&gpio_led, state); diff --git a/examples/lighting-app/esp32/main/Button.cpp b/examples/lighting-app/esp32/main/Button.cpp index bfbf058d292a5e..a801f2ec9bde4c 100644 --- a/examples/lighting-app/esp32/main/Button.cpp +++ b/examples/lighting-app/esp32/main/Button.cpp @@ -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_INPUT_IO_0), gpio_isr_handler, (void*) GPIO_INPUT_IO_0); + gpio_isr_handler_add(static_cast(GPIO_INPUT_IO_0), gpio_isr_handler, (void*) GPIO_INPUT_IO_0); ESP_LOGI(TAG, "Button initialized.."); } @@ -43,5 +43,3 @@ void Button::SetButtonPressCallback(ButtonPressCallback button_callback){ button_press_handler = button_callback; } } - - diff --git a/examples/lighting-app/esp32/main/DeviceCallbacks.cpp b/examples/lighting-app/esp32/main/DeviceCallbacks.cpp index 925f4bf22bc5a0..e354e1f050ade1 100644 --- a/examples/lighting-app/esp32/main/DeviceCallbacks.cpp +++ b/examples/lighting-app/esp32/main/DeviceCallbacks.cpp @@ -145,4 +145,4 @@ void emberAfOnOffClusterInitCallback(EndpointId endpoint) { ESP_LOGI(TAG, "emberAfOnOffClusterInitCallback"); GetAppTask().UpdateClusterState(); -} \ No newline at end of file +} diff --git a/examples/lighting-app/esp32/main/main.cpp b/examples/lighting-app/esp32/main/main.cpp index 753e8f7849f229..79e42c3829da44 100644 --- a/examples/lighting-app/esp32/main/main.cpp +++ b/examples/lighting-app/esp32/main/main.cpp @@ -98,5 +98,5 @@ extern "C" void app_main() { ESP_LOGE(TAG, "GetAppTask().StartAppTask() failed : %s", ErrorStr(error)); } - + }