diff options
| author | hathach <[email protected]> | 2018-12-13 15:28:04 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-12-13 15:28:04 +0700 |
| commit | 27208ad2fdbd7af5080531eafd9a1a20515cedc1 (patch) | |
| tree | 6869937edf3afe3182665c329343e6a55b99ba59 /src/class | |
| parent | b562fa741b5a8bb47d4e32c0a0f2600b72993b9a (diff) | |
| parent | edf885ca465e16d74833a4866951ca9aa7d4326c (diff) | |
Merge pull request #25 from hathach/devlocal
remove OSAL_TASK_DEF, osal_task_create
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/hid/hid_device.c | 2 | ||||
| -rw-r--r-- | src/class/hid/hid_host.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c index bd49c157a..70aa7370d 100644 --- a/src/class/hid/hid_device.c +++ b/src/class/hid/hid_device.c @@ -340,7 +340,7 @@ bool hidd_open(uint8_t rhport, tusb_desc_interface_t const * desc_itf, uint16_t /*------------- Boot protocol only keyboard & mouse -------------*/
if (desc_itf->bInterfaceSubClass == HID_SUBCLASS_BOOT)
{
- TU_ASSERT(desc_itf->bInterfaceProtocol == HID_PROTOCOL_KEYBOARD || desc_itf->bInterfaceProtocol == HID_PROTOCOL_MOUSE, ERR_TUD_INVALID_DESCRIPTOR);
+ TU_ASSERT(desc_itf->bInterfaceProtocol == HID_PROTOCOL_KEYBOARD || desc_itf->bInterfaceProtocol == HID_PROTOCOL_MOUSE);
#if CFG_TUD_HID_KEYBOARD && CFG_TUD_HID_KEYBOARD_BOOT
if (desc_itf->bInterfaceProtocol == HID_PROTOCOL_KEYBOARD)
diff --git a/src/class/hid/hid_host.c b/src/class/hid/hid_host.c index 1e44055ec..b01cd9d59 100644 --- a/src/class/hid/hid_host.c +++ b/src/class/hid/hid_host.c @@ -238,12 +238,12 @@ bool hidh_open_subtask(uint8_t dev_addr, tusb_desc_interface_t const *p_interfac #endif
{
- // TUSB_ERROR_HIDH_NOT_SUPPORTED_PROTOCOL
+ // Not supported protocol
return false;
}
}else
{
- // TUSB_ERROR_HIDH_NOT_SUPPORTED_SUBCLASS
+ // Not supported subclass
return false;
}
|
