Skip to content

Commit 95c1d84

Browse files
bill88tdhalbert
andauthored
Just 500
Co-authored-by: Dan Halbert <[email protected]>
1 parent ed31c7d commit 95c1d84

File tree

1 file changed

+1
-1
lines changed
  • ports/raspberrypi/common-hal/wifi

1 file changed

+1
-1
lines changed

ports/raspberrypi/common-hal/wifi/Radio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void common_hal_wifi_radio_stop_station(wifi_radio_obj_t *self) {
161161
// (by tcpip_link_status). However since ap disconnection isn't working
162162
// either, this is not an issue.
163163
cyw43_wifi_leave(&cyw43_state, CYW43_ITF_AP);
164-
size_t timeout_ms = (size_t)MICROPY_FLOAT_C_FUN(ceil)(500);
164+
const size_t timeout_ms = 500;
165165
uint64_t start = port_get_raw_ticks(NULL);
166166
uint64_t deadline = start + timeout_ms;
167167
while (port_get_raw_ticks(NULL) < deadline && (cyw43_tcpip_link_status(&cyw43_state, CYW43_ITF_STA) != CYW43_LINK_DOWN)) {

0 commit comments

Comments
 (0)