Skip to content

Commit c9aaa86

Browse files
committed
drv/usb: Fix pbdrv_usb_tx_reset() not awaited.
Await pbdrv_usb_tx_reset(). It is a coroutine and must be awaited to run to completion.
1 parent 904cd77 commit c9aaa86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/pbio/drv/usb/usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ static pbio_error_t pbdrv_usb_process_thread(pbio_os_state_t *state, void *conte
285285

286286
PBIO_OS_AWAIT_WHILE(state, pbdrv_usb_is_ready());
287287
pbdrv_usb_reset_state();
288-
pbdrv_usb_tx_reset(&sub);
288+
PBIO_OS_AWAIT(state, &sub, pbdrv_usb_tx_reset(&sub));
289289
}
290290

291291
// Unreachable. On cancellation, the charger detection step in the above

0 commit comments

Comments
 (0)