mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-11-09 00:23:10 +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:
1 parent
6d9dcfc41d
commit
35c9e861a9
1 file changed
+1
-1
@@ -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