mirror of https://gerrit.osmocom.org/simtrace2
USBDDriver.c: Fixed set configuration bug
On setConfiguration the first entry in the configuration entry was always taken. Now it takes cfgNum as index number.
This commit is contained in:
parent
6d9dcfc41d
commit
35c9e861a9
|
@ -92,7 +92,7 @@ static void SetConfiguration(USBDDriver *pDriver, uint8_t cfgnum)
|
|||
}
|
||||
else {
|
||||
|
||||
pConfiguration = pDriver->pDescriptors->pFsConfiguration[0];
|
||||
pConfiguration = pDriver->pDescriptors->pFsConfiguration[cfgnum];
|
||||
}
|
||||
|
||||
/* Set & save the desired configuration */
|
||||
|
|
Loading…
Reference in New Issue