Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and abiradarti committed Aug 15, 2022
1 parent 3eebfbd commit 36dea2b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 0 additions & 2 deletions src/platform/cc32xx/CC32XXConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
14 changes: 6 additions & 8 deletions src/platform/cc32xx/ConnectivityManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
}
Expand All @@ -211,8 +211,6 @@ void ConnectivityManagerImpl::_OnIpAcquired(intptr_t arg)
chip::app::DnssdServer::Instance().StartServer();
}



void ConnectivityManagerImpl::OnStationConnected()
{
cc32xxLog("ConnectivityManagerImpl::OnStationConnected()\n\r");
Expand Down
8 changes: 4 additions & 4 deletions src/platform/cc32xx/ConnectivityManagerImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
#endif
#include <platform/internal/GenericConnectivityManagerImpl_NoThread.h>

extern "C"
{
extern "C" {
#include "lwip_if.h"
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 36dea2b

Please sign in to comment.