mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-11-09 03:13:10 +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 {
|
else {
|
||||||
|
|
||||||
pConfiguration = pDriver->pDescriptors->pFsConfiguration[cfgnum];
|
pConfiguration = pDriver->pDescriptors->pFsConfiguration[cfgnum-1];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set & save the desired configuration */
|
/* Set & save the desired configuration */
|
||||||
|
|||||||
Reference in new issue
Block a user