mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-23 00:38:33 +03:00
add serial and version info in USB description
as for the main application firmware, the DFU bootloader firmware now also has the unique chip ID as iSerial in the USB description, and an additional empty USB configuration indicates the firmware version (e.g. DFU bootloader version). these are only visible when the device is in DFU mode. Change-Id: I11a2cd8079fda374d816da180f39f1c33d10af60
This commit is contained in:
@@ -447,6 +447,7 @@ void USBDFU_Initialize(const USBDDriverDescriptors *pDescriptors)
|
||||
/* We already start in DFU idle mode */
|
||||
g_dfu->state = DFU_STATE_dfuIDLE;
|
||||
|
||||
set_usb_serial_str();
|
||||
USBDDriver_Initialize(&usbdDriver, pDescriptors, if_altsettings);
|
||||
USBD_Init();
|
||||
USBD_Connect();
|
||||
|
||||
Reference in New Issue
Block a user