We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed31c7d commit 95c1d84Copy full SHA for 95c1d84
ports/raspberrypi/common-hal/wifi/Radio.c
@@ -161,7 +161,7 @@ void common_hal_wifi_radio_stop_station(wifi_radio_obj_t *self) {
161
// (by tcpip_link_status). However since ap disconnection isn't working
162
// either, this is not an issue.
163
cyw43_wifi_leave(&cyw43_state, CYW43_ITF_AP);
164
- size_t timeout_ms = (size_t)MICROPY_FLOAT_C_FUN(ceil)(500);
+ const size_t timeout_ms = 500;
165
uint64_t start = port_get_raw_ticks(NULL);
166
uint64_t deadline = start + timeout_ms;
167
while (port_get_raw_ticks(NULL) < deadline && (cyw43_tcpip_link_status(&cyw43_state, CYW43_ITF_STA) != CYW43_LINK_DOWN)) {
0 commit comments