make buffer big enough

pull/83/head^2
Michael Ammann 2013-10-09 15:10:14 +03:00 committed by Bogdan Marinescu
parent d3963de05d
commit 330e59fb85
2 changed files with 2 additions and 2 deletions

View File

@ -852,7 +852,7 @@ USB_TYPE USBHost::enumerate(USBDeviceConnected * dev, IUSBEnumerator* pEnumerato
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) {
usb_mutex.unlock();
return res;

View File

@ -272,7 +272,7 @@ private:
Mutex td_mutex;
// buffer for conf descriptor
uint8_t data[300];
uint8_t data[415];
/**
* Add a transfer on the TD linked list associated to an ED