mirror of https://github.com/ARMmbed/mbed-os.git
make buffer big enough
parent
d3963de05d
commit
330e59fb85
|
@ -852,7 +852,7 @@ USB_TYPE USBHost::enumerate(USBDeviceConnected * dev, IUSBEnumerator* pEnumerato
|
||||||
|
|
||||||
pEnumerator->setVidPid( data[8] | (data[9] << 8), data[10] | (data[11] << 8) );
|
pEnumerator->setVidPid( data[8] | (data[9] << 8), data[10] | (data[11] << 8) );
|
||||||
|
|
||||||
res = getConfigurationDescriptor(dev, data, 300, &total_conf_descr_length);
|
res = getConfigurationDescriptor(dev, data, sizeof(data), &total_conf_descr_length);
|
||||||
if (res != USB_TYPE_OK) {
|
if (res != USB_TYPE_OK) {
|
||||||
usb_mutex.unlock();
|
usb_mutex.unlock();
|
||||||
return res;
|
return res;
|
||||||
|
|
|
@ -272,7 +272,7 @@ private:
|
||||||
Mutex td_mutex;
|
Mutex td_mutex;
|
||||||
|
|
||||||
// buffer for conf descriptor
|
// buffer for conf descriptor
|
||||||
uint8_t data[300];
|
uint8_t data[415];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a transfer on the TD linked list associated to an ED
|
* Add a transfer on the TD linked list associated to an ED
|
||||||
|
|
Loading…
Reference in New Issue