summaryrefslogtreecommitdiff
path: root/tinyusb/class
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-06 17:22:40 +0700
committerhathach <[email protected]>2018-03-06 17:22:40 +0700
commit3265f0b770bf83b0766c4b8bbbd48218fdedb00f (patch)
tree291de5ead3baae430d113da009777b71cc097c34 /tinyusb/class
parente561f4f4c68ebad8bf7b35adaaa9907ffb7c5fe0 (diff)
clean up
Diffstat (limited to 'tinyusb/class')
-rw-r--r--tinyusb/class/hid_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/class/hid_device.c b/tinyusb/class/hid_device.c
index a5fb8a92b..00fd2660e 100644
--- a/tinyusb/class/hid_device.c
+++ b/tinyusb/class/hid_device.c
@@ -278,7 +278,7 @@ tusb_error_t hidd_open(uint8_t coreid, tusb_descriptor_interface_t const * p_int
hidd_class_driver_t const * const p_driver = &hidd_class_driver[p_interface_desc->bInterfaceProtocol];
hidd_interface_t * const p_hid = p_driver->p_interface;
- ASSERT_PTR(p_hid, TUSB_ERROR_FAILED);
+ VERIFY(p_hid, TUSB_ERROR_FAILED);
VERIFY( hal_dcd_pipe_open(coreid, p_desc_endpoint, &p_hid->ept_handle), TUSB_ERROR_DCD_FAILED );
@@ -286,7 +286,7 @@ tusb_error_t hidd_open(uint8_t coreid, tusb_descriptor_interface_t const * p_int
p_hid->p_report_desc = (p_interface_desc->bInterfaceProtocol == HID_PROTOCOL_KEYBOARD) ? tusbd_descriptor_pointers.p_hid_keyboard_report : tusbd_descriptor_pointers.p_hid_mouse_report;
p_hid->report_length = p_desc_hid->wReportLength;
- ASSERT_PTR(p_hid->p_report_desc, TUSB_ERROR_DESCRIPTOR_CORRUPTED);
+ VERIFY(p_hid->p_report_desc, TUSB_ERROR_DESCRIPTOR_CORRUPTED);
}
break;