mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
shared/tinyusb: Use new persistent-tx-fifo configure interface.
The old configuration option has been removed from TinyUSB. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -428,8 +428,10 @@ void mp_usbd_init(void) {
|
||||
}
|
||||
|
||||
if (need_usb) {
|
||||
tusb_init(); // Safe to call redundantly
|
||||
tud_connect(); // Reconnect if mp_usbd_deinit() has disconnected
|
||||
// The following will call tusb_init(), which is safe to call redundantly.
|
||||
mp_usbd_init_tud();
|
||||
// Reconnect if mp_usbd_deinit() has disconnected.
|
||||
tud_connect();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user