summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-01-22 11:33:25 +0700
committerhathach <[email protected]>2021-01-22 11:33:25 +0700
commit67a9cdc35baf3767bd24c78c68e0b969d2d7c191 (patch)
treee8e51988c674144bcd2d9ca1d33c640ec075ca21 /src
parentedd91d28f5afa175d7f52ec1bf1845ff29aabab9 (diff)
fix compiler warning
Diffstat (limited to 'src')
-rw-r--r--src/host/usbh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index bf265199d..10ae991f4 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -154,7 +154,7 @@ tusb_device_state_t tuh_device_get_state (uint8_t const dev_addr)
tusb_speed_t tuh_device_get_speed (uint8_t const dev_addr)
{
TU_ASSERT( dev_addr <= CFG_TUSB_HOST_DEVICE_MAX, TUSB_DEVICE_STATE_UNPLUG);
- return _usbh_devices[dev_addr].speed;
+ return (tusb_speed_t) _usbh_devices[dev_addr].speed;
}
void osal_task_delay(uint32_t msec)