diff options
| author | hathach <[email protected]> | 2018-03-05 13:25:24 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-05 13:25:24 +0700 |
| commit | 84bce659b81db2c0ce079dd00818070048d1b1bc (patch) | |
| tree | b152e6d9415ee7014be261e598423efbe6914435 /tinyusb/class/hid_host.c | |
| parent | 185b240f033fc692e3dfe1593895a9c28ee41c7b (diff) | |
reame SUBTASK_EXIT to SUBTASK_RETURN
Diffstat (limited to 'tinyusb/class/hid_host.c')
| -rw-r--r-- | tinyusb/class/hid_host.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/class/hid_host.c b/tinyusb/class/hid_host.c index 0f39a0487..46b1383f7 100644 --- a/tinyusb/class/hid_host.c +++ b/tinyusb/class/hid_host.c @@ -239,11 +239,11 @@ tusb_error_t hidh_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t con #endif
{
- SUBTASK_EXIT(TUSB_ERROR_HIDH_NOT_SUPPORTED_PROTOCOL); // exit & restart task
+ SUBTASK_RETURN(TUSB_ERROR_HIDH_NOT_SUPPORTED_PROTOCOL); // exit & restart task
}
}else
{
- SUBTASK_EXIT(TUSB_ERROR_HIDH_NOT_SUPPORTED_SUBCLASS); // exit & restart task
+ SUBTASK_RETURN(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);
|
