summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-08-25 12:39:51 +0700
committerGitHub <[email protected]>2021-08-25 12:39:51 +0700
commit155c186b17e4e56d2b6339f8087d077afbea6818 (patch)
treea0802244abf1361eab31a61d2475b28e7a432a34 /src/portable
parent9c3fdb8135f33dd3a1c8dfddaf8300e7416bd7af (diff)
parent3debeb637acb49222f36fa08f904adc4f5d9e1b7 (diff)
Merge pull request #1047 from hathach/host-hid-controller
Add host hid controller example
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/raspberrypi/rp2040/hcd_rp2040.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/raspberrypi/rp2040/hcd_rp2040.c b/src/portable/raspberrypi/rp2040/hcd_rp2040.c
index 34803c674..e51dfac2b 100644
--- a/src/portable/raspberrypi/rp2040/hcd_rp2040.c
+++ b/src/portable/raspberrypi/rp2040/hcd_rp2040.c
@@ -87,7 +87,7 @@ static bool need_pre(uint8_t dev_addr)
{
// If this device is different to the speed of the root device
// (i.e. is a low speed device on a full speed hub) then need pre
- return hcd_port_speed_get(0) != tuh_device_get_speed(dev_addr);
+ return hcd_port_speed_get(0) != tuh_speed_get(dev_addr);
}
static void hw_xfer_complete(struct hw_endpoint *ep, xfer_result_t xfer_result)