summaryrefslogtreecommitdiff
path: root/tinyusb/host/ehci
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-29 13:28:30 +0700
committerhathach <[email protected]>2018-03-29 13:28:30 +0700
commitd63d5d616074cc0ebf03dd0c6384f9b3d915547a (patch)
tree4772b480ae87e4f0720af33e3563e013fa3fde20 /tinyusb/host/ehci
parent1d33d4e07247107af6e8a14467852ed56734924c (diff)
more verify and assert clean up
Diffstat (limited to 'tinyusb/host/ehci')
-rw-r--r--tinyusb/host/ehci/ehci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c
index 3fc629fde..a14779ca2 100644
--- a/tinyusb/host/ehci/ehci.c
+++ b/tinyusb/host/ehci/ehci.c
@@ -958,7 +958,7 @@ static void qhd_init(ehci_qhd_t *p_qhd, uint8_t dev_addr, uint16_t max_packet_si
{
if (TUSB_SPEED_HIGH == p_qhd->endpoint_speed)
{
- ASSERT_INT_WITHIN(1, 16, interval, VOID_RETURN);
+ TU_ASSERT( interval <= 16, VOID_RETURN);
if ( interval < 4) // sub milisecond interval
{
p_qhd->interval_ms = 0;