summaryrefslogtreecommitdiff
path: root/tinyusb/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-29 13:07:27 +0700
committerhathach <[email protected]>2018-03-29 13:07:27 +0700
commitc50da4962e47ee9139d66478a8c4809f4761e47b (patch)
tree8769a3f91e1d95525085abc6e61252a807b93434 /tinyusb/host
parentccf6f03817daf860173a41d72454ae23b2eab974 (diff)
clean up assert and verify
Diffstat (limited to 'tinyusb/host')
-rw-r--r--tinyusb/host/hub.c2
-rw-r--r--tinyusb/host/usbh.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/host/hub.c b/tinyusb/host/hub.c
index 6432ff62b..7bcd009e8 100644
--- a/tinyusb/host/hub.c
+++ b/tinyusb/host/hub.c
@@ -230,7 +230,7 @@ void hub_isr(pipe_handle_t pipe_hdl, tusb_event_t event, uint32_t xferred_bytes)
else
{
// TODO [HUB] check if hub is still plugged before polling status endpoint since failed usually mean hub unplugged
-// ASSERT_INT ( TUSB_ERROR_NONE, hcd_pipe_xfer(pipe_hdl, &p_hub->status_change, 1, true) );
+// TU_ASSERT ( TUSB_ERROR_NONE == hcd_pipe_xfer(pipe_hdl, &p_hub->status_change, 1, true) );
}
}
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c
index 38f4bb346..a491988c3 100644
--- a/tinyusb/host/usbh.c
+++ b/tinyusb/host/usbh.c
@@ -259,7 +259,7 @@ void usbh_xfer_isr(pipe_handle_t pipe_hdl, uint8_t class_code, tusb_event_t even
usbh_class_drivers[class_index].isr(pipe_hdl, event, xferred_bytes);
}else
{
- ASSERT_FAILED(VOID_RETURN); // something wrong, no one claims the isr's source
+ TU_ASSERT(false); // something wrong, no one claims the isr's source
}
}