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/DeviceCallbacks.cpp b/examples/lighting-app/esp32/main/DeviceCallbacks.cpp index c0861847505885..bc1174f4676358 100644 --- a/examples/lighting-app/esp32/main/DeviceCallbacks.cpp +++ b/examples/lighting-app/esp32/main/DeviceCallbacks.cpp @@ -144,4 +144,4 @@ void emberAfOnOffClusterInitCallback(EndpointId endpoint) { ESP_LOGI(TAG, "emberAfOnOffClusterInitCallback"); GetAppTask().UpdateClusterState(); -} \ No newline at end of file +}