diff options
| author | Ha Thach <[email protected]> | 2021-08-24 12:28:41 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-24 12:28:41 +0700 |
| commit | 9c3fdb8135f33dd3a1c8dfddaf8300e7416bd7af (patch) | |
| tree | 42af87c301f9af724fb37c048310efa891ce6206 /src/class/vendor | |
| parent | fc2ffed5c60513338188a36b66187b6b0ed35f93 (diff) | |
| parent | 5d152503ee6c31c7cf3ad2dfeb9ac38c70c42bd4 (diff) | |
Merge pull request #1043 from hathach/more-host-improvement
More host improvement
Diffstat (limited to 'src/class/vendor')
| -rw-r--r-- | src/class/vendor/vendor_host.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/vendor/vendor_host.c b/src/class/vendor/vendor_host.c index f7a6b2bf0..1e28e9af4 100644 --- a/src/class/vendor/vendor_host.c +++ b/src/class/vendor/vendor_host.c @@ -41,7 +41,7 @@ //--------------------------------------------------------------------+ // INTERNAL OBJECT & FUNCTION DECLARATION //--------------------------------------------------------------------+ -custom_interface_info_t custom_interface[CFG_TUSB_HOST_DEVICE_MAX]; +custom_interface_info_t custom_interface[CFG_TUH_DEVICE_MAX]; static tusb_error_t cush_validate_paras(uint8_t dev_addr, uint16_t vendor_id, uint16_t product_id, void * p_buffer, uint16_t length) { @@ -90,7 +90,7 @@ tusb_error_t tusbh_custom_write(uint8_t dev_addr, uint16_t vendor_id, uint16_t p //--------------------------------------------------------------------+ void cush_init(void) { - tu_memclr(&custom_interface, sizeof(custom_interface_info_t) * CFG_TUSB_HOST_DEVICE_MAX); + tu_memclr(&custom_interface, sizeof(custom_interface_info_t) * CFG_TUH_DEVICE_MAX); } tusb_error_t cush_open_subtask(uint8_t dev_addr, tusb_desc_interface_t const *p_interface_desc, uint16_t *p_length) |
