From 36dea2be098c0a6fbd2ac163b7723cbb2f54c0a2 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Mon, 15 Aug 2022 15:36:28 +0000 Subject: [PATCH] Restyled by clang-format --- src/platform/cc32xx/CC32XXConfig.cpp | 2 -- src/platform/cc32xx/ConnectivityManagerImpl.cpp | 14 ++++++-------- src/platform/cc32xx/ConnectivityManagerImpl.h | 8 ++++---- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/platform/cc32xx/CC32XXConfig.cpp b/src/platform/cc32xx/CC32XXConfig.cpp index ba1f9150e504f5..c5d2370997a054 100644 --- a/src/platform/cc32xx/CC32XXConfig.cpp +++ b/src/platform/cc32xx/CC32XXConfig.cpp @@ -344,7 +344,6 @@ CHIP_ERROR CC32XXConfig::ReadConfigValue(Key key, bool & val) uint8_t localVal; cc32xxLog("[%s] %s", __FUNCTION__, key.key); - ret = ReadConfigValueBin(key, &localVal, sizeof(localVal), ignore); // reference CC32XXConfig::WriteConfigValue(Key key, bool val) for storage of boolean values @@ -374,7 +373,6 @@ CHIP_ERROR CC32XXConfig::ReadConfigValueBin(Key key, uint8_t * buf, size_t bufSi { cc32xxLog("[%s] %s", __FUNCTION__, key.key); - CC32XXKVSEntry * pEntry = pList->GetEntryByKey(key.key); VerifyOrReturnError(pEntry != nullptr, CHIP_DEVICE_ERROR_CONFIG_NOT_FOUND); diff --git a/src/platform/cc32xx/ConnectivityManagerImpl.cpp b/src/platform/cc32xx/ConnectivityManagerImpl.cpp index c85badff822765..f9e5dc12e2ffd1 100644 --- a/src/platform/cc32xx/ConnectivityManagerImpl.cpp +++ b/src/platform/cc32xx/ConnectivityManagerImpl.cpp @@ -66,7 +66,7 @@ using namespace ::chip::System; using namespace ::chip::TLV; extern "C" void cc32xxLog(const char * aFormat, ...); -static struct netif *m_pNetIf = NULL; +static struct netif * m_pNetIf = NULL; namespace chip { namespace DeviceLayer { @@ -193,14 +193,14 @@ void ConnectivityManagerImpl::_OnWiFiStationProvisionChange() } // ==================== ConnectivityManager Private Methods ==================== -void ConnectivityManagerImpl::_OnLwipEvent(struct netif *pNetIf, NetIfStatus_e status, void *pParams) +void ConnectivityManagerImpl::_OnLwipEvent(struct netif * pNetIf, NetIfStatus_e status, void * pParams) { - switch(status) + switch (status) { - case E_NETIF_STATUS_IP_ACQUIRED: - PlatformMgr().ScheduleWork(_OnIpAcquired); + case E_NETIF_STATUS_IP_ACQUIRED: + PlatformMgr().ScheduleWork(_OnIpAcquired); break; - default: + default: break; } } @@ -211,8 +211,6 @@ void ConnectivityManagerImpl::_OnIpAcquired(intptr_t arg) chip::app::DnssdServer::Instance().StartServer(); } - - void ConnectivityManagerImpl::OnStationConnected() { cc32xxLog("ConnectivityManagerImpl::OnStationConnected()\n\r"); diff --git a/src/platform/cc32xx/ConnectivityManagerImpl.h b/src/platform/cc32xx/ConnectivityManagerImpl.h index dcde3c97f65385..36b64bb6e73bc1 100644 --- a/src/platform/cc32xx/ConnectivityManagerImpl.h +++ b/src/platform/cc32xx/ConnectivityManagerImpl.h @@ -39,8 +39,7 @@ #endif #include -extern "C" -{ +extern "C" { #include "lwip_if.h" } @@ -131,8 +130,9 @@ class ConnectivityManagerImpl final : public ConnectivityManager, void OnStationDisconnected(void); void ChangeWiFiStationState(WiFiStationState newState); - static void _OnLwipEvent(struct netif *pNetIf, NetIfStatus_e status, void *pParams); - static void _OnIpAcquired(intptr_t arg); CHIP_ERROR ConfigureWiFiAP(void); + static void _OnLwipEvent(struct netif * pNetIf, NetIfStatus_e status, void * pParams); + static void _OnIpAcquired(intptr_t arg); + CHIP_ERROR ConfigureWiFiAP(void); void ChangeWiFiAPState(WiFiAPState newState); void UpdateInternetConnectivityState(void);