diff options
| author | hathach <[email protected]> | 2018-03-11 19:43:03 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-11 19:43:03 +0700 |
| commit | f5260610d3ed56ae61401617f611ec4b94b4c5ee (patch) | |
| tree | b41131f976e0ac23c27b3ea9cee65f69f0966d10 /tinyusb | |
| parent | 078f6000554dbf5764073260b25784d5d4f324e7 (diff) | |
clean up example
Diffstat (limited to 'tinyusb')
| -rw-r--r-- | tinyusb/class/hid/hid_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/class/hid/hid_device.c b/tinyusb/class/hid/hid_device.c index b09d1a71e..716e65bc2 100644 --- a/tinyusb/class/hid/hid_device.c +++ b/tinyusb/class/hid/hid_device.c @@ -114,7 +114,7 @@ bool tud_hid_keyboard_busy(uint8_t port) tusb_error_t tud_hid_keyboard_send(uint8_t port, hid_keyboard_report_t const *p_report)
{
- ASSERT(tud_mounted(port), TUSB_ERROR_USBD_DEVICE_NOT_CONFIGURED);
+ ASSERT(tud_mounted(), TUSB_ERROR_USBD_DEVICE_NOT_CONFIGURED);
hidd_interface_t * p_kbd = &keyboardd_data; // TODO &keyboardd_data[port];
@@ -137,7 +137,7 @@ bool tud_hid_mouse_is_busy(uint8_t port) tusb_error_t tud_hid_mouse_send(uint8_t port, hid_mouse_report_t const *p_report)
{
- ASSERT(tud_mounted(port), TUSB_ERROR_USBD_DEVICE_NOT_CONFIGURED);
+ ASSERT(tud_mounted(), TUSB_ERROR_USBD_DEVICE_NOT_CONFIGURED);
hidd_interface_t * p_mouse = &moused_data; // TODO &keyboardd_data[port];
|
