From 05fd47ca8ce8695b72f2662ce614558d149671c7 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Fri, 14 Apr 2023 09:08:22 +0000 Subject: [PATCH] Restyled by clang-format --- .../telink/include/AppConfig.h | 10 ++--- .../telink/include/AppConfig.h | 10 ++--- .../bridge-app/telink/include/AppConfig.h | 10 ++--- examples/bridge-app/telink/src/AppTask.cpp | 2 +- .../telink/include/AppConfig.h | 10 ++--- .../telink/include/AppConfig.h | 10 ++--- .../light-switch-app/telink/include/AppTask.h | 1 + .../lighting-app/telink/include/AppConfig.h | 10 ++--- examples/lighting-app/telink/src/AppTask.cpp | 4 +- examples/lock-app/telink/include/AppConfig.h | 10 ++--- .../telink/include/AppConfig.h | 10 ++--- .../telink/common/src/AppTaskCommon.cpp | 38 ++++++++++--------- examples/pump-app/telink/include/AppConfig.h | 10 ++--- examples/pump-app/telink/src/AppTask.cpp | 22 +++++------ .../telink/include/AppConfig.h | 10 ++--- .../telink/src/AppTask.cpp | 4 +- .../telink/include/AppConfig.h | 10 ++--- .../thermostat/telink/include/AppConfig.h | 10 ++--- .../window-app/telink/include/AppConfig.h | 10 ++--- examples/window-app/telink/src/AppTask.cpp | 2 +- 20 files changed, 104 insertions(+), 99 deletions(-) mode change 100755 => 100644 examples/contact-sensor-app/telink/include/AppConfig.h mode change 100755 => 100644 examples/light-switch-app/telink/include/AppConfig.h mode change 100755 => 100644 examples/lock-app/telink/include/AppConfig.h mode change 100755 => 100644 examples/pump-app/telink/include/AppConfig.h mode change 100755 => 100644 examples/pump-controller-app/telink/include/AppConfig.h mode change 100755 => 100644 examples/thermostat/telink/include/AppConfig.h diff --git a/examples/all-clusters-app/telink/include/AppConfig.h b/examples/all-clusters-app/telink/include/AppConfig.h index b66f46badd4c96..880f3aa7b98c50 100644 --- a/examples/all-clusters-app/telink/include/AppConfig.h +++ b/examples/all-clusters-app/telink/include/AppConfig.h @@ -19,10 +19,10 @@ #pragma once // ---- All Clusters Application example config ---- -#define APP_USE_EXAMPLE_START_BUTTON 0 -#define APP_USE_THREAD_START_BUTTON 1 -#define APP_SET_DEVICE_INFO_PROVIDER 1 -#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 1 -#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" +#define APP_USE_EXAMPLE_START_BUTTON 0 +#define APP_USE_THREAD_START_BUTTON 1 +#define APP_SET_DEVICE_INFO_PROVIDER 1 +#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 1 +#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" #include "AppConfigCommon.h" diff --git a/examples/all-clusters-minimal-app/telink/include/AppConfig.h b/examples/all-clusters-minimal-app/telink/include/AppConfig.h index 664dcaade5b0d6..10d4d5f281d67a 100644 --- a/examples/all-clusters-minimal-app/telink/include/AppConfig.h +++ b/examples/all-clusters-minimal-app/telink/include/AppConfig.h @@ -20,10 +20,10 @@ // ---- All Clusters Minimal Application example config ---- -#define APP_USE_EXAMPLE_START_BUTTON 0 -#define APP_USE_THREAD_START_BUTTON 0 -#define APP_SET_DEVICE_INFO_PROVIDER 0 -#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 1 -#define APP_USE_IDENTIFY_PWM 0 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" +#define APP_USE_EXAMPLE_START_BUTTON 0 +#define APP_USE_THREAD_START_BUTTON 0 +#define APP_SET_DEVICE_INFO_PROVIDER 0 +#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 1 +#define APP_USE_IDENTIFY_PWM 0 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" #include "AppConfigCommon.h" diff --git a/examples/bridge-app/telink/include/AppConfig.h b/examples/bridge-app/telink/include/AppConfig.h index a0c959213d0746..3f7cccb6807d10 100644 --- a/examples/bridge-app/telink/include/AppConfig.h +++ b/examples/bridge-app/telink/include/AppConfig.h @@ -20,11 +20,11 @@ // ---- Bridge App Example Config ---- -#define APP_USE_EXAMPLE_START_BUTTON 1 -#define APP_USE_THREAD_START_BUTTON 1 -#define APP_SET_DEVICE_INFO_PROVIDER 1 -#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 -#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" +#define APP_USE_EXAMPLE_START_BUTTON 1 +#define APP_USE_THREAD_START_BUTTON 1 +#define APP_SET_DEVICE_INFO_PROVIDER 1 +#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 +#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" #include "AppConfigCommon.h" diff --git a/examples/bridge-app/telink/src/AppTask.cpp b/examples/bridge-app/telink/src/AppTask.cpp index fc651091b14dbe..8f6bf092a61649 100644 --- a/examples/bridge-app/telink/src/AppTask.cpp +++ b/examples/bridge-app/telink/src/AppTask.cpp @@ -19,9 +19,9 @@ #include "AppTask.h" #include "Device.h" +#include #include #include -#include LOG_MODULE_DECLARE(app, CONFIG_CHIP_APP_LOG_LEVEL); diff --git a/examples/contact-sensor-app/telink/include/AppConfig.h b/examples/contact-sensor-app/telink/include/AppConfig.h old mode 100755 new mode 100644 index 9fb06bd8fe642d..2ab155cd590a67 --- a/examples/contact-sensor-app/telink/include/AppConfig.h +++ b/examples/contact-sensor-app/telink/include/AppConfig.h @@ -19,11 +19,11 @@ #pragma once // ---- All Clusters Application example config ---- -#define APP_USE_EXAMPLE_START_BUTTON 1 -#define APP_USE_THREAD_START_BUTTON 0 -#define APP_SET_DEVICE_INFO_PROVIDER 1 -#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 -#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" +#define APP_USE_EXAMPLE_START_BUTTON 1 +#define APP_USE_THREAD_START_BUTTON 0 +#define APP_SET_DEVICE_INFO_PROVIDER 1 +#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 +#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" #include "AppConfigCommon.h" diff --git a/examples/light-switch-app/telink/include/AppConfig.h b/examples/light-switch-app/telink/include/AppConfig.h old mode 100755 new mode 100644 index e07f1f9e052b38..05c6957a92e399 --- a/examples/light-switch-app/telink/include/AppConfig.h +++ b/examples/light-switch-app/telink/include/AppConfig.h @@ -20,10 +20,10 @@ // ---- Light Switch Example App Config ---- -#define APP_USE_EXAMPLE_START_BUTTON 1 -#define APP_USE_THREAD_START_BUTTON 1 -#define APP_SET_DEVICE_INFO_PROVIDER 1 -#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 -#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" +#define APP_USE_EXAMPLE_START_BUTTON 1 +#define APP_USE_THREAD_START_BUTTON 1 +#define APP_SET_DEVICE_INFO_PROVIDER 1 +#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 +#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" #include "AppConfigCommon.h" diff --git a/examples/light-switch-app/telink/include/AppTask.h b/examples/light-switch-app/telink/include/AppTask.h index cbabfde8e13753..12e09eaf9f1a16 100644 --- a/examples/light-switch-app/telink/include/AppTask.h +++ b/examples/light-switch-app/telink/include/AppTask.h @@ -24,6 +24,7 @@ class AppTask : public AppTaskCommon { public: void UpdateClusterState(); + private: friend AppTask & GetAppTask(void); friend class AppTaskCommon; diff --git a/examples/lighting-app/telink/include/AppConfig.h b/examples/lighting-app/telink/include/AppConfig.h index 301606e35d229c..eaf1933669106c 100644 --- a/examples/lighting-app/telink/include/AppConfig.h +++ b/examples/lighting-app/telink/include/AppConfig.h @@ -20,11 +20,11 @@ // ---- Lighting Example App Config ---- -#define APP_USE_EXAMPLE_START_BUTTON 1 -#define APP_USE_THREAD_START_BUTTON 1 -#define APP_SET_DEVICE_INFO_PROVIDER 1 -#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 -#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" +#define APP_USE_EXAMPLE_START_BUTTON 1 +#define APP_USE_THREAD_START_BUTTON 1 +#define APP_SET_DEVICE_INFO_PROVIDER 1 +#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 +#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" #include "AppConfigCommon.h" diff --git a/examples/lighting-app/telink/src/AppTask.cpp b/examples/lighting-app/telink/src/AppTask.cpp index d2480ffa6ddac1..1f512e322dc188 100644 --- a/examples/lighting-app/telink/src/AppTask.cpp +++ b/examples/lighting-app/telink/src/AppTask.cpp @@ -18,8 +18,8 @@ #include "AppTask.h" -#include "PWMDevice.h" #include "ColorFormat.h" +#include "PWMDevice.h" #include @@ -196,7 +196,7 @@ void AppTask::UpdateClusterState(void) bool isTurnedOn = sAppTask.mPwmRgbRedLed.IsTurnedOn() || sAppTask.mPwmRgbGreenLed.IsTurnedOn() || sAppTask.mPwmRgbBlueLed.IsTurnedOn(); #else - bool isTurnedOn = sAppTask.mPwmRgbBlueLed.IsTurnedOn(); + bool isTurnedOn = sAppTask.mPwmRgbBlueLed.IsTurnedOn(); #endif // write the new on/off value EmberAfStatus status = Clusters::OnOff::Attributes::OnOff::Set(kExampleEndpointId, isTurnedOn); diff --git a/examples/lock-app/telink/include/AppConfig.h b/examples/lock-app/telink/include/AppConfig.h old mode 100755 new mode 100644 index f2401bb2a3e04b..ae4c9d5b4fc9c5 --- a/examples/lock-app/telink/include/AppConfig.h +++ b/examples/lock-app/telink/include/AppConfig.h @@ -20,11 +20,11 @@ // ---- Lock Example App Config ---- -#define APP_USE_EXAMPLE_START_BUTTON 1 -#define APP_USE_THREAD_START_BUTTON 1 -#define APP_SET_DEVICE_INFO_PROVIDER 1 -#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 -#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" +#define APP_USE_EXAMPLE_START_BUTTON 1 +#define APP_USE_THREAD_START_BUTTON 1 +#define APP_SET_DEVICE_INFO_PROVIDER 1 +#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 +#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" #include "AppConfigCommon.h" diff --git a/examples/ota-requestor-app/telink/include/AppConfig.h b/examples/ota-requestor-app/telink/include/AppConfig.h index f183e78477cd2c..ff96590c376749 100644 --- a/examples/ota-requestor-app/telink/include/AppConfig.h +++ b/examples/ota-requestor-app/telink/include/AppConfig.h @@ -20,10 +20,10 @@ // ---- OTA Requestor Example App Config ---- -#define APP_USE_EXAMPLE_START_BUTTON 0 -#define APP_USE_THREAD_START_BUTTON 1 -#define APP_SET_DEVICE_INFO_PROVIDER 1 -#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 1 -#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" +#define APP_USE_EXAMPLE_START_BUTTON 0 +#define APP_USE_THREAD_START_BUTTON 1 +#define APP_SET_DEVICE_INFO_PROVIDER 1 +#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 1 +#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" #include "AppConfigCommon.h" diff --git a/examples/platform/telink/common/src/AppTaskCommon.cpp b/examples/platform/telink/common/src/AppTaskCommon.cpp index b2289e26622f16..37e8bf36d4846a 100644 --- a/examples/platform/telink/common/src/AppTaskCommon.cpp +++ b/examples/platform/telink/common/src/AppTaskCommon.cpp @@ -24,10 +24,10 @@ #include "ThreadUtil.h" #include +#include #include #include #include -#include #if CONFIG_CHIP_OTA_REQUESTOR #include "OTAUtil.h" @@ -36,9 +36,9 @@ LOG_MODULE_DECLARE(app, CONFIG_CHIP_APP_LOG_LEVEL); namespace { -constexpr int kFactoryResetCalcTimeout = 3000; -constexpr int kFactoryResetTriggerCntr = 3; -constexpr int kAppEventQueueSize = 10; +constexpr int kFactoryResetCalcTimeout = 3000; +constexpr int kFactoryResetTriggerCntr = 3; +constexpr int kAppEventQueueSize = 10; #if APP_USE_IDENTIFY_PWM constexpr uint32_t kIdentifyBlinkRateMs = 200; @@ -80,7 +80,7 @@ bool sIsThreadAttached = false; bool sHaveBLEConnections = false; #if APP_SET_DEVICE_INFO_PROVIDER - chip::DeviceLayer::DeviceInfoProviderImpl gExampleDeviceInfoProvider; +chip::DeviceLayer::DeviceInfoProviderImpl gExampleDeviceInfoProvider; #endif #if APP_USE_IDENTIFY_PWM @@ -247,25 +247,27 @@ void AppTaskCommon::InitButtons(void) #if CONFIG_CHIP_BUTTON_MANAGER_IRQ_MODE sFactoryResetButton.Configure(BUTTON_PORT, BUTTON_PIN_1, FactoryResetButtonEventHandler); sBleAdvStartButton.Configure(BUTTON_PORT, BUTTON_PIN_4, StartBleAdvButtonEventHandler); - #if APP_USE_THREAD_START_BUTTON +#if APP_USE_THREAD_START_BUTTON sThreadStartButton.Configure(BUTTON_PORT, BUTTON_PIN_3, StartThreadButtonEventHandler); - #endif - #if APP_USE_EXAMPLE_START_BUTTON - if (ExampleActionEventHandler) { +#endif +#if APP_USE_EXAMPLE_START_BUTTON + if (ExampleActionEventHandler) + { sExampleActionButton.Configure(BUTTON_PORT, BUTTON_PIN_2, ExampleActionButtonEventHandler); } - #endif +#endif #else sFactoryResetButton.Configure(BUTTON_PORT, BUTTON_PIN_3, BUTTON_PIN_1, FactoryResetButtonEventHandler); sBleAdvStartButton.Configure(BUTTON_PORT, BUTTON_PIN_4, BUTTON_PIN_2, StartBleAdvButtonEventHandler); - #if APP_USE_THREAD_START_BUTTON +#if APP_USE_THREAD_START_BUTTON sThreadStartButton.Configure(BUTTON_PORT, BUTTON_PIN_3, BUTTON_PIN_2, StartThreadButtonEventHandler); - #endif - #if APP_USE_EXAMPLE_START_BUTTON - if (ExampleActionEventHandler) { +#endif +#if APP_USE_EXAMPLE_START_BUTTON + if (ExampleActionEventHandler) + { sExampleActionButton.Configure(BUTTON_PORT, BUTTON_PIN_4, BUTTON_PIN_1, ExampleActionButtonEventHandler); } - #endif +#endif #endif ButtonManagerInst().AddButton(sFactoryResetButton); @@ -274,7 +276,8 @@ void AppTaskCommon::InitButtons(void) ButtonManagerInst().AddButton(sThreadStartButton); #endif #if APP_USE_EXAMPLE_START_BUTTON - if (ExampleActionEventHandler) { + if (ExampleActionEventHandler) + { ButtonManagerInst().AddButton(sExampleActionButton); } #endif @@ -502,7 +505,8 @@ void AppTaskCommon::ExampleActionButtonEventHandler(void) { AppEvent event; - if (!GetAppTask().ExampleActionEventHandler) { + if (!GetAppTask().ExampleActionEventHandler) + { return; } diff --git a/examples/pump-app/telink/include/AppConfig.h b/examples/pump-app/telink/include/AppConfig.h old mode 100755 new mode 100644 index 4b2b5538ec78dc..a661fd8c3f25e6 --- a/examples/pump-app/telink/include/AppConfig.h +++ b/examples/pump-app/telink/include/AppConfig.h @@ -20,11 +20,11 @@ // ---- Pump Example App Config ---- -#define APP_USE_EXAMPLE_START_BUTTON 1 -#define APP_USE_THREAD_START_BUTTON 1 -#define APP_SET_DEVICE_INFO_PROVIDER 1 -#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 -#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" +#define APP_USE_EXAMPLE_START_BUTTON 1 +#define APP_USE_THREAD_START_BUTTON 1 +#define APP_SET_DEVICE_INFO_PROVIDER 1 +#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 +#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" #include "AppConfigCommon.h" diff --git a/examples/pump-app/telink/src/AppTask.cpp b/examples/pump-app/telink/src/AppTask.cpp index cf520d0a7fb8cb..30aeaf3828badb 100644 --- a/examples/pump-app/telink/src/AppTask.cpp +++ b/examples/pump-app/telink/src/AppTask.cpp @@ -24,8 +24,8 @@ LOG_MODULE_DECLARE(app, CONFIG_CHIP_APP_LOG_LEVEL); namespace { -constexpr EndpointId kPccClusterEndpoint = 1; -constexpr EndpointId kOnOffClusterEndpoint = 1; +constexpr EndpointId kPccClusterEndpoint = 1; +constexpr EndpointId kOnOffClusterEndpoint = 1; #if CONFIG_CHIP_ENABLE_APPLICATION_STATUS_LED LEDWidget sPumpStateLED; @@ -144,23 +144,23 @@ void AppTask::UpdateClusterState() LOG_ERR("ERR: Updating On/Off state %x", status); } - int16_t maxPressure = PumpMgr().GetMaxPressure(); + int16_t maxPressure = PumpMgr().GetMaxPressure(); uint16_t maxSpeed = PumpMgr().GetMaxSpeed(); uint16_t maxFlow = PumpMgr().GetMaxFlow(); - int16_t minConstPress = PumpMgr().GetMinConstPressure(); - int16_t maxConstPress = PumpMgr().GetMaxConstPressure(); - int16_t minCompPress = PumpMgr().GetMinCompPressure(); - int16_t maxCompPress = PumpMgr().GetMaxCompPressure(); + int16_t minConstPress = PumpMgr().GetMinConstPressure(); + int16_t maxConstPress = PumpMgr().GetMaxConstPressure(); + int16_t minCompPress = PumpMgr().GetMinCompPressure(); + int16_t maxCompPress = PumpMgr().GetMaxCompPressure(); uint16_t minConstSpeed = PumpMgr().GetMinConstSpeed(); uint16_t maxConstSpeed = PumpMgr().GetMaxConstSpeed(); uint16_t minConstFlow = PumpMgr().GetMinConstFlow(); uint16_t maxConstFlow = PumpMgr().GetMaxConstFlow(); - int16_t minConstTemp = PumpMgr().GetMinConstTemp(); - int16_t maxConstTemp = PumpMgr().GetMaxConstTemp(); + int16_t minConstTemp = PumpMgr().GetMinConstTemp(); + int16_t maxConstTemp = PumpMgr().GetMaxConstTemp(); LOG_INF("UpdateClusterState:\n maxPressure = %d,\t maxSpeed = %d,\t maxFlow = %d\n minConstPress = %d,\t " "maxConstPress = %d\n minCompPress = %d,\t maxCompPress = %d\n minConstSpeed = %d,\t maxConstSpeed = %d\n" - "minConstFlow = %d,\t maxConstFlow = %d\n minConstTemp = %d,\t maxConstTemp = %d", maxPressure, maxSpeed, - maxFlow, minConstPress, maxConstPress, minCompPress, maxCompPress, minConstSpeed, maxConstSpeed, + "minConstFlow = %d,\t maxConstFlow = %d\n minConstTemp = %d,\t maxConstTemp = %d", + maxPressure, maxSpeed, maxFlow, minConstPress, maxConstPress, minCompPress, maxCompPress, minConstSpeed, maxConstSpeed, minConstFlow, maxConstFlow, minConstTemp, maxConstTemp); } diff --git a/examples/pump-controller-app/telink/include/AppConfig.h b/examples/pump-controller-app/telink/include/AppConfig.h old mode 100755 new mode 100644 index db04d6f196d900..5dd793da63e67e --- a/examples/pump-controller-app/telink/include/AppConfig.h +++ b/examples/pump-controller-app/telink/include/AppConfig.h @@ -20,11 +20,11 @@ // ---- Pump Controller Example App Config ---- -#define APP_USE_EXAMPLE_START_BUTTON 1 -#define APP_USE_THREAD_START_BUTTON 1 -#define APP_SET_DEVICE_INFO_PROVIDER 1 -#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 -#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" +#define APP_USE_EXAMPLE_START_BUTTON 1 +#define APP_USE_THREAD_START_BUTTON 1 +#define APP_SET_DEVICE_INFO_PROVIDER 1 +#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 +#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" #include "AppConfigCommon.h" diff --git a/examples/pump-controller-app/telink/src/AppTask.cpp b/examples/pump-controller-app/telink/src/AppTask.cpp index 001cb4f0db4d2b..13bb753fe0d759 100644 --- a/examples/pump-controller-app/telink/src/AppTask.cpp +++ b/examples/pump-controller-app/telink/src/AppTask.cpp @@ -22,8 +22,8 @@ LOG_MODULE_DECLARE(app, CONFIG_CHIP_APP_LOG_LEVEL); namespace { -constexpr EndpointId kPccClusterEndpoint = 1; -constexpr EndpointId kOnOffClusterEndpoint = 1; +constexpr EndpointId kPccClusterEndpoint = 1; +constexpr EndpointId kOnOffClusterEndpoint = 1; #if CONFIG_CHIP_ENABLE_APPLICATION_STATUS_LED LEDWidget sPumpStateLED; diff --git a/examples/temperature-measurement-app/telink/include/AppConfig.h b/examples/temperature-measurement-app/telink/include/AppConfig.h index 3a9da558ec4d9c..c2955144027fb2 100644 --- a/examples/temperature-measurement-app/telink/include/AppConfig.h +++ b/examples/temperature-measurement-app/telink/include/AppConfig.h @@ -20,10 +20,10 @@ // ---- Temperature measurement Example App Config ---- -#define APP_USE_EXAMPLE_START_BUTTON 0 -#define APP_USE_THREAD_START_BUTTON 1 -#define APP_SET_DEVICE_INFO_PROVIDER 1 -#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 -#define APP_USE_IDENTIFY_PWM 0 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" +#define APP_USE_EXAMPLE_START_BUTTON 0 +#define APP_USE_THREAD_START_BUTTON 1 +#define APP_SET_DEVICE_INFO_PROVIDER 1 +#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 +#define APP_USE_IDENTIFY_PWM 0 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" #include "AppConfigCommon.h" diff --git a/examples/thermostat/telink/include/AppConfig.h b/examples/thermostat/telink/include/AppConfig.h old mode 100755 new mode 100644 index 0bc5a8fdcbefff..4b74db57e3091d --- a/examples/thermostat/telink/include/AppConfig.h +++ b/examples/thermostat/telink/include/AppConfig.h @@ -20,10 +20,10 @@ // ---- Thermostat Example App Config ---- -#define APP_USE_EXAMPLE_START_BUTTON 0 -#define APP_USE_THREAD_START_BUTTON 1 -#define APP_SET_DEVICE_INFO_PROVIDER 1 -#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 -#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" +#define APP_USE_EXAMPLE_START_BUTTON 0 +#define APP_USE_THREAD_START_BUTTON 1 +#define APP_SET_DEVICE_INFO_PROVIDER 1 +#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 +#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" #include "AppConfigCommon.h" diff --git a/examples/window-app/telink/include/AppConfig.h b/examples/window-app/telink/include/AppConfig.h index dd4cf602f0918f..261c67234d043c 100644 --- a/examples/window-app/telink/include/AppConfig.h +++ b/examples/window-app/telink/include/AppConfig.h @@ -20,11 +20,11 @@ // ---- Window App Example Config ---- -#define APP_USE_EXAMPLE_START_BUTTON 0 -#define APP_USE_THREAD_START_BUTTON 0 -#define APP_SET_DEVICE_INFO_PROVIDER 1 -#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 -#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" +#define APP_USE_EXAMPLE_START_BUTTON 0 +#define APP_USE_THREAD_START_BUTTON 0 +#define APP_SET_DEVICE_INFO_PROVIDER 1 +#define APP_SET_NETWORK_COMM_ENDPOINT_SEC 0 +#define APP_USE_IDENTIFY_PWM 1 // APP_USE_IDENTIFY_PWM must be defined before including "AppConfigCommon.h" #include "AppConfigCommon.h" #define LIGHTING_PWM_SPEC_RGB_BLUE PWM_DT_SPEC_GET(DT_ALIAS(pwm_led0)) diff --git a/examples/window-app/telink/src/AppTask.cpp b/examples/window-app/telink/src/AppTask.cpp index 437f31884d90bc..e79e03cc5b4058 100644 --- a/examples/window-app/telink/src/AppTask.cpp +++ b/examples/window-app/telink/src/AppTask.cpp @@ -17,8 +17,8 @@ */ #include "AppTask.h" -#include "WindowCovering.h" #include "ButtonManager.h" +#include "WindowCovering.h" LOG_MODULE_DECLARE(app, CONFIG_CHIP_APP_LOG_LEVEL);