ignore usb-storage descriptors marked "not attached"

This commit is contained in:
Chris Danford
2004-02-26 09:39:43 +00:00
parent 28e275a8b7
commit c7961e4e55
@@ -135,7 +135,7 @@ void MemoryCardDriver_Linux::GetStorageDevices( vector<UsbStorageDevice>& vDevic
{
// Read all usb-storage descriptors and map from our array to usb-storage device index.
int iConnectedDeviceIndex = 0;
for( int iUsbStorageIndex = 0; true; iUsbStorageIndex++; )
for( int iUsbStorageIndex = 0; true; iUsbStorageIndex++ )
{
UsbStorageDevice& usbd = vDevicesOut[iConnectedDeviceIndex];
// Output looks like: