From a07ff5a3cece890534ffdd7865676fc8b3a637fd Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 27 Jun 2013 16:32:54 +0700 Subject: use SUBTASK_EXIT to restart & exit task without "assert" --- tinyusb/class/hid_host.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tinyusb/class') diff --git a/tinyusb/class/hid_host.c b/tinyusb/class/hid_host.c index 5d780a819..9328ba782 100644 --- a/tinyusb/class/hid_host.c +++ b/tinyusb/class/hid_host.c @@ -276,13 +276,11 @@ tusb_error_t hidh_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t con #endif { - // TODO assert without breaking into debugger - SUBTASK_ASSERT_STATUS(TUSB_ERROR_HIDH_NOT_SUPPORTED_PROTOCOL); + SUBTASK_EXIT(TUSB_ERROR_HIDH_NOT_SUPPORTED_PROTOCOL); // exit & restart task } }else { - // TODO assert without breaking into debugger - SUBTASK_ASSERT_STATUS(TUSB_ERROR_HIDH_NOT_SUPPORTED_SUBCLASS); + SUBTASK_EXIT(TUSB_ERROR_HIDH_NOT_SUPPORTED_SUBCLASS); // exit & restart task } *p_length = sizeof(tusb_descriptor_interface_t) + sizeof(tusb_hid_descriptor_hid_t) + sizeof(tusb_descriptor_endpoint_t); -- cgit v1.3.1