Skip to content

Commit a6a9734

Browse files
restyled-commitschirag-silabs
authored andcommitted
Restyled by clang-format
1 parent be7e1ae commit a6a9734

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

examples/platform/silabs/efr32/rs911x/rsi_if.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,8 @@ static void wfx_rsi_save_ap_info() // translation
511511
break;
512512
}
513513

514-
SILABS_LOG("wfx_rsi_save_ap_info: WLAN: connecting to %s, sec=%d, status=%02x", &wfx_rsi.sec.ssid[0], wfx_rsi.sec.security, status);
514+
SILABS_LOG("wfx_rsi_save_ap_info: WLAN: connecting to %s, sec=%d, status=%02x", &wfx_rsi.sec.ssid[0], wfx_rsi.sec.security,
515+
status);
515516
}
516517

517518
/********************************************************************************************

examples/platform/silabs/wifi/wfx_notify.cpp

+12-11
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
* limitations under the License.
1616
*/
1717

18+
#include "AppConfig.h"
19+
#include "BaseApplication.h"
20+
#include <app/icd/server/ICDServerConfig.h>
1821
#include <stdio.h>
1922
#include <stdlib.h>
2023
#include <string.h>
21-
#include <app/icd/server/ICDServerConfig.h>
22-
#include "AppConfig.h"
23-
#include "BaseApplication.h"
2424

2525
#include "FreeRTOS.h"
2626
#include "event_groups.h"
@@ -40,10 +40,10 @@ using namespace ::chip::DeviceLayer;
4040
namespace {
4141
constexpr uint8_t kWlanMinRetryIntervalsInSec = 1;
4242
constexpr uint8_t kWlanMaxRetryIntervalsInSec = 60;
43-
constexpr uint8_t kWlanRetryIntervalInSec = 5;
44-
uint8_t retryInterval = kWlanMinRetryIntervalsInSec;
43+
constexpr uint8_t kWlanRetryIntervalInSec = 5;
44+
uint8_t retryInterval = kWlanMinRetryIntervalsInSec;
4545
osTimerId_t sRetryTimer;
46-
}
46+
} // namespace
4747
/*
4848
* Notifications to the upper-layer
4949
* All done in the context of the RSI/WiFi task (rsi_if.c)
@@ -100,7 +100,7 @@ void wfx_connected_notify(int32_t status, sl_wfx_mac_address_t * ap)
100100

101101
VerifyOrReturn(status != SUCCESS_STATUS)
102102

103-
memset(&evt, 0, sizeof(evt));
103+
memset(&evt, 0, sizeof(evt));
104104
evt.header.id = SL_WFX_CONNECT_IND_ID;
105105
evt.header.length = sizeof evt;
106106

@@ -180,13 +180,13 @@ void wfx_retry_connection(uint16_t retryAttempt)
180180
{
181181
if (retryAttempt < MAX_JOIN_RETRIES_COUNT)
182182
{
183-
ChipLogProgress(DeviceLayer, "wfx_retry_connection : Next attempt after %d Seconds",
184-
kWlanRetryIntervalInSec);
183+
ChipLogProgress(DeviceLayer, "wfx_retry_connection : Next attempt after %d Seconds", kWlanRetryIntervalInSec);
185184
if (osTimerStart(sRetryTimer, pdMS_TO_TICKS(CONVERT_SEC_TO_MS(kWlanRetryIntervalInSec))) != osOK)
186185
{
187186
ChipLogProgress(DeviceLayer, "Failed to start retry timer");
188187
// Sending the join command if retry timer failed to start
189-
if (wfx_connect_to_ap() != SL_STATUS_OK) {
188+
if (wfx_connect_to_ap() != SL_STATUS_OK)
189+
{
190190
ChipLogError(DeviceLayer, "wfx_connect_to_ap() failed.");
191191
}
192192
return;
@@ -212,7 +212,8 @@ void wfx_retry_connection(uint16_t retryAttempt)
212212
{
213213
ChipLogProgress(DeviceLayer, "Failed to start retry timer");
214214
// Sending the join command if retry timer failed to start
215-
if (wfx_connect_to_ap() != SL_STATUS_OK) {
215+
if (wfx_connect_to_ap() != SL_STATUS_OK)
216+
{
216217
ChipLogError(DeviceLayer, "wfx_connect_to_ap() failed.");
217218
}
218219
return;

0 commit comments

Comments
 (0)