update actual link speed for spresense

This commit is contained in:
hathach 2020-07-17 18:28:19 +07:00
parent dc00f0cae1
commit 7baeea7a00
1 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,8 @@ static void _dcd_disconnect(FAR struct usbdevclass_driver_s *driver, FAR struct
{
(void) driver;
dcd_event_bus_signal(0, DCD_EVENT_BUS_RESET, true);
tusb_speed_t speed = (dev->speed == 3) ? TUSB_SPEED_HIGH : TUSB_SPEED_FULL;
dcd_event_bus_reset(0, speed, true);
DEV_CONNECT(dev);
}