This is an automated email from the ASF dual-hosted git repository.
kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new fb7a159d1 tinyusb/std_descriptors: Add slot name for DFU runtime
fb7a159d1 is described below
commit fb7a159d19872d2f7b9d0803371c27459e17a53c
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Wed Sep 30 20:36:37 2026 +0200
tinyusb/std_descriptors: Add slot name for DFU runtime
Slot name was presented in normal DFU.
dfu-util showed this like this:
Found Runtime: [c0ca:c01a] ver=0100, devnum=36, cfg=1,
intf=1, path="2-6.2", alt=0, name="UNKNOWN", serial="1"
Where name was UNKNOWN.
With this change dfu-util will show something like that:
Found Runtime: [c0ca:c01a] ver=0100, devnum=62, cfg=1,
intf=1, path="2-6.2", alt=0, name="MYNEWT@08010000*512K",
serial="1"
Signed-off-by: Jerzy Kasenberg <[email protected]>
---
hw/usb/tinyusb/std_descriptors/src/std_descriptors.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/usb/tinyusb/std_descriptors/src/std_descriptors.c
b/hw/usb/tinyusb/std_descriptors/src/std_descriptors.c
index 92a73e7be..79cdd57f7 100755
--- a/hw/usb/tinyusb/std_descriptors/src/std_descriptors.c
+++ b/hw/usb/tinyusb/std_descriptors/src/std_descriptors.c
@@ -354,7 +354,7 @@ const uint8_t desc_configuration[] = {
#endif
#if CFG_TUD_DFU_RUNTIME
- TUD_DFU_RT_DESCRIPTOR(ITF_NUM_DFU_RUNTIME, 0, DFU_ATTR_CAN_DOWNLOAD,
+ TUD_DFU_RT_DESCRIPTOR(ITF_NUM_DFU_RUNTIME, DFU_SLOT_NAME_IF_STR_IX,
DFU_ATTR_CAN_DOWNLOAD,
CFG_TUD_DFU_DETACH_TIMEOUT,
CFG_TUD_DFU_XFER_BUFSIZE),
#endif
};