diff options
| author | hathach <[email protected]> | 2018-11-23 15:17:43 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-11-23 15:17:43 +0700 |
| commit | a619ff88a36e4b841cb5901135b1811b06c3c843 (patch) | |
| tree | 9212c44046d8d37a86d000d9f1f5c8bc3f54d3f6 /examples/obsolete/host/src/mouse_host_app.c | |
| parent | cb8782e5f28b4897e73520c91296d1ac7d71da81 (diff) | |
rename xfer complete enum
Diffstat (limited to 'examples/obsolete/host/src/mouse_host_app.c')
| -rw-r--r-- | examples/obsolete/host/src/mouse_host_app.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/obsolete/host/src/mouse_host_app.c b/examples/obsolete/host/src/mouse_host_app.c index 05135693b..819c2b290 100644 --- a/examples/obsolete/host/src/mouse_host_app.c +++ b/examples/obsolete/host/src/mouse_host_app.c @@ -80,12 +80,12 @@ void tuh_hid_mouse_isr(uint8_t dev_addr, xfer_result_t event) { switch(event) { - case TUSB_EVENT_XFER_COMPLETE: + case XFER_RESULT_SUCCESS: osal_queue_send(queue_mouse_hdl, &usb_mouse_report); (void) tuh_hid_mouse_get_report(dev_addr, (uint8_t*) &usb_mouse_report); break; - case TUSB_EVENT_XFER_ERROR: + case XFER_RESULT_FAILED: (void) tuh_hid_mouse_get_report(dev_addr, (uint8_t*) &usb_mouse_report); // ignore & continue break; |
