diff options
| author | hathach <[email protected]> | 2014-03-10 14:20:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-10 14:20:38 +0700 |
| commit | b586fe632acb45dc0577a9ab447fe02ab6cb457d (patch) | |
| tree | 6befaafae699e40ac96e32233336ef0e251a2cea /tinyusb/device/usbd.c | |
| parent | ad72db5aeacf7d969f5c091c59a2f279eaf1c19c (diff) | |
change desc_str_table to array of pointer of uint8_t* to be compatible with IAR (lack of support for VLA initialization)
IAR device os none works with ea4357
Diffstat (limited to 'tinyusb/device/usbd.c')
| -rw-r--r-- | tinyusb/device/usbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c index 38d139f1f..0b9044db9 100644 --- a/tinyusb/device/usbd.c +++ b/tinyusb/device/usbd.c @@ -344,7 +344,7 @@ static tusb_error_t get_descriptor(uint8_t coreid, tusb_control_request_t const if ( ! (desc_index < TUSB_CFG_DEVICE_STRING_DESCRIPTOR_COUNT) ) return TUSB_ERROR_DCD_CONTROL_REQUEST_NOT_SUPPORT; (*pp_buffer) = (uint8_t *) desc_str_table[desc_index]; - (*p_length) = desc_str_table[desc_index]->bLength; + (*p_length) = **pp_buffer; }else { return TUSB_ERROR_DCD_CONTROL_REQUEST_NOT_SUPPORT; |
