mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-19 06:48:34 +03:00
ensure USB config numbers always start from 1
Depending on which features (and thus USB configurations) are included in the firmware, we need to re-define the ordering of the configuration numbers, as the Atmel USBD driver simply assumes that configurations are numbered 1..N without any gaps in the sequence.
This commit is contained in:
@@ -44,6 +44,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#include "board.h"
|
||||
#include "simtrace.h"
|
||||
|
||||
#ifdef HAVE_CCID
|
||||
|
||||
#include <USBDDriver.h>
|
||||
#include <USBRequests.h>
|
||||
#include <USBDescriptors.h>
|
||||
@@ -1029,4 +1033,4 @@ unsigned char RDRtoPCHardwareError( unsigned char bSlot,
|
||||
return USBD_Write( CCID_EPT_NOTIFICATION, ccidDriver.BufferINT, 4, 0, 0 );
|
||||
}
|
||||
|
||||
|
||||
#endif /* HAVE_CCID */
|
||||
|
||||
Reference in New Issue
Block a user