summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-07-17 18:28:19 +0700
committerhathach <[email protected]>2020-07-17 18:28:19 +0700
commit7baeea7a000a7d8f8d0bb2c966d4c2c409205a09 (patch)
tree402ac0419cfaad7d66af8a924a34d6f1dd5783e3 /src/portable
parentdc00f0cae10ec43c9f035938276b7000c3120ec2 (diff)
update actual link speed for spresense
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/sony/cxd56/dcd_cxd56.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/portable/sony/cxd56/dcd_cxd56.c b/src/portable/sony/cxd56/dcd_cxd56.c
index bcf94dc21..9269903a5 100644
--- a/src/portable/sony/cxd56/dcd_cxd56.c
+++ b/src/portable/sony/cxd56/dcd_cxd56.c
@@ -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);
}