mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 13:48:32 +03:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user