Skip to content

Commit aceb325

Browse files
restyled-commitslpbeliveau-silabs
authored andcommitted
Restyled by clang-format
1 parent 35584b4 commit aceb325

File tree

6 files changed

+15
-250
lines changed

6 files changed

+15
-250
lines changed

examples/platform/silabs/BaseApplication.cpp

+12-10
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ app::Clusters::NetworkCommissioning::Instance
115115
sWiFiNetworkCommissioningInstance(0 /* Endpoint Id */, &(NetworkCommissioning::SlWiFiDriver::GetInstance()));
116116
#endif /* SL_WIFI */
117117

118-
bool sIsEnabled = false;
119-
bool sIsAttached = false;
118+
bool sIsEnabled = false;
119+
bool sIsAttached = false;
120120

121121
#if !(defined(CHIP_CONFIG_ENABLE_ICD_SERVER) && CHIP_CONFIG_ENABLE_ICD_SERVER)
122122
bool sHaveBLEConnections = false;
@@ -160,9 +160,9 @@ Identify gIdentify = {
160160

161161
} // namespace
162162

163-
bool BaseApplication::sIsProvisioned = false;
164-
bool BaseApplication::sIsFactoryResetTriggered = false;
165-
LEDWidget * BaseApplication::sAppActionLed = nullptr;
163+
bool BaseApplication::sIsProvisioned = false;
164+
bool BaseApplication::sIsFactoryResetTriggered = false;
165+
LEDWidget * BaseApplication::sAppActionLed = nullptr;
166166
BaseApplicationDelegate BaseApplication::sAppDelegate = BaseApplicationDelegate();
167167

168168
#ifdef DIC_ENABLE
@@ -438,14 +438,14 @@ void BaseApplication::UpdateCommissioningStatus(bool newState)
438438
{
439439
#ifdef SL_WIFI
440440
BaseApplication::sIsProvisioned = ConnectivityMgr().IsWiFiStationProvisioned();
441-
sIsEnabled = ConnectivityMgr().IsWiFiStationEnabled();
442-
sIsAttached = ConnectivityMgr().IsWiFiStationConnected();
441+
sIsEnabled = ConnectivityMgr().IsWiFiStationEnabled();
442+
sIsAttached = ConnectivityMgr().IsWiFiStationConnected();
443443
#endif /* SL_WIFI */
444444
#if CHIP_ENABLE_OPENTHREAD
445445
// TODO: This is a temporary solution until we can read Thread provisioning status from RAM instead of NVM.
446446
BaseApplication::sIsProvisioned = newState;
447-
sIsEnabled = ConnectivityMgr().IsThreadEnabled();
448-
sIsAttached = ConnectivityMgr().IsThreadAttached();
447+
sIsEnabled = ConnectivityMgr().IsThreadEnabled();
448+
sIsAttached = ConnectivityMgr().IsThreadAttached();
449449
#endif /* CHIP_ENABLE_OPENTHREAD */
450450

451451
ActivateStatusLedPatterns();
@@ -790,7 +790,9 @@ void BaseApplication::ScheduleFactoryReset()
790790
{
791791
Provision::Manager::GetInstance().SetProvisionRequired(true);
792792
}
793-
PlatformMgr().HandleServerShuttingDown(); // HandleServerShuttingDown calls OnShutdown() which is only implemented for the basic information cluster it seems. And triggers and Event flush, which is not relevant when there are no fabrics left
793+
PlatformMgr().HandleServerShuttingDown(); // HandleServerShuttingDown calls OnShutdown() which is only implemented for the
794+
// basic information cluster it seems. And triggers and Event flush, which is not
795+
// relevant when there are no fabrics left
794796
ConfigurationMgr().InitiateFactoryReset();
795797
});
796798
}

examples/platform/silabs/BaseApplication.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
#include <app/util/config.h>
3333
#include <ble/Ble.h>
3434
#include <cmsis_os2.h>
35+
#include <credentials/FabricTable.h>
3536
#include <lib/core/CHIPError.h>
3637
#include <platform/CHIPDeviceEvent.h>
3738
#include <platform/CHIPDeviceLayer.h>
38-
#include <credentials/FabricTable.h>
3939

4040
#include "LEDWidget.h"
4141

@@ -63,8 +63,7 @@
6363
#define APP_ERROR_START_TIMER_FAILED CHIP_APPLICATION_ERROR(0x05)
6464
#define APP_ERROR_STOP_TIMER_FAILED CHIP_APPLICATION_ERROR(0x06)
6565

66-
class BaseApplicationDelegate : public AppDelegate,
67-
public chip::FabricTable::Delegate
66+
class BaseApplicationDelegate : public AppDelegate, public chip::FabricTable::Delegate
6867
{
6968
private:
7069
// AppDelegate

src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,6 @@ CHIP_ERROR GenericThreadStackManagerImpl_OpenThread<ImplClass>::ConfigureThreadS
11441144
return err;
11451145
}
11461146

1147-
11481147
template <class ImplClass>
11491148
CHIP_ERROR GenericThreadStackManagerImpl_OpenThread<ImplClass>::DoInit(otInstance * otInst)
11501149
{

src/platform/silabs/ThreadStackManagerImpl_CMSIS.h

-97
This file was deleted.

src/platform/silabs/efr32/ThreadStackManagerImpl_CMSIS.hpp

-138
This file was deleted.

third_party/silabs/efr32_sdk.gni

+1-1
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ template("efr32_sdk") {
482482
defines += [
483483
"SL_OT_ENABLE=1",
484484

485-
#TODO: Remove these defines onse sl_openthread_rtos_config is included in sl_ot_rtos_adaptation.c
485+
#TODO: Remove these defines once sl_openthread_rtos_config is included in sl_ot_rtos_adaptation.c
486486
"SL_OPENTHREAD_RTOS_STACK_TASK_PRIORITY=24",
487487
"SL_OPENTHREAD_RTOS_APP_TASK_PRIORITY=23",
488488
"SL_OPENTHREAD_RTOS_CLI_TASK_PRIORITY=16",

0 commit comments

Comments
 (0)