rp2/cyw43_configport: Add event hook into cyw43_delay_ms.

Still see some USB issues apparently caused by delays loading wifi
firmware.  cyw43_delay_ms is used to wait in the driver, so we should call
the event hook in there.

Fixes #8963.
This commit is contained in:
Peter Harper 2022-07-26 15:56:07 +01:00 committed by Damien George
parent 1230d86dca
commit 45ab801c30

View File

@ -93,6 +93,7 @@ static inline void cyw43_delay_ms(uint32_t ms) {
int32_t start = mp_hal_ticks_us();
while (mp_hal_ticks_us() - start < us) {
__WFI();
MICROPY_EVENT_POLL_HOOK_FAST;
}
}