mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-11-08 19:15:59 +03:00
USBDDriver: Corrected config array off by one
This commit is contained in:
1 parent
0becc0c51c
commit
3ca88d8a5a
1 file changed
+1
-1
@@ -92,7 +92,7 @@ static void SetConfiguration(USBDDriver *pDriver, uint8_t cfgnum)
|
||||
}
|
||||
else {
|
||||
|
||||
pConfiguration = pDriver->pDescriptors->pFsConfiguration[cfgnum];
|
||||
pConfiguration = pDriver->pDescriptors->pFsConfiguration[cfgnum-1];
|
||||
}
|
||||
|
||||
/* Set & save the desired configuration */
|
||||
|
||||
Reference in new issue
Block a user