Skip to content

Commit 4255caa

Browse files
Astyle
1 parent ade00f7 commit 4255caa

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

cores/rp2040/sdkoverride/cyw43_arch_freertos.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ async_context_t *cyw43_arch_init_default_async_context(void) {
5050
}
5151

5252
int cyw43_arch_init(void) {
53-
// async_context_t *context = cyw43_arch_async_context();
54-
// if (!context) {
55-
// context = cyw43_arch_init_default_async_context();
56-
// if (!context) {
57-
// return PICO_ERROR_GENERIC;
58-
// }
59-
// cyw43_arch_set_async_context(context);
60-
// }
53+
// async_context_t *context = cyw43_arch_async_context();
54+
// if (!context) {
55+
// context = cyw43_arch_init_default_async_context();
56+
// if (!context) {
57+
// return PICO_ERROR_GENERIC;
58+
// }
59+
// cyw43_arch_set_async_context(context);
60+
// }
6161
async_context_t *context = NULL;
6262
cyw43_arch_set_async_context(context);
6363

libraries/lwIP_CYW43/src/cyw43_driver_freertos.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ extern "C" void __wrap_cyw43_thread_lock_check() {
156156
#endif
157157

158158
extern "C" void __wrap_cyw43_await_background_or_timeout_us(uint32_t timeout_us) {
159-
// cyw43_set_irq_enabled(true);
159+
// cyw43_set_irq_enabled(true);
160160
if (__get_current_exception() > 0) {
161161
vTaskDelay((timeout_us / 1000) / portTICK_PERIOD_MS);
162162
return;
@@ -183,15 +183,19 @@ extern "C" void __wrap_cyw43_delay_us(uint32_t us) {
183183
static int this_cyw43_arch_wifi_connect_bssid_until(const char *ssid, const uint8_t *bssid, const char *pw, uint32_t auth, uint32_t timeout_ms) {
184184
uint32_t start = millis();
185185
int err = cyw43_arch_wifi_connect_bssid_async(ssid, bssid, pw, auth);
186-
if (err) return err;
186+
if (err) {
187+
return err;
188+
}
187189
int status = CYW43_LINK_UP + 1;
188-
while(status >= 0 && status != CYW43_LINK_UP) {
190+
while (status >= 0 && status != CYW43_LINK_UP) {
189191
int new_status = cyw43_tcpip_link_status(&cyw43_state, CYW43_ITF_STA);
190192
// If there was no network, keep trying
191193
if (new_status == CYW43_LINK_NONET) {
192194
new_status = CYW43_LINK_JOIN;
193195
err = cyw43_arch_wifi_connect_bssid_async(ssid, bssid, pw, auth);
194-
if (err) return err;
196+
if (err) {
197+
return err;
198+
}
195199
}
196200
if (new_status != status) {
197201
status = new_status;

0 commit comments

Comments
 (0)