From 3566d44df231336ec47dfb351e6b84ab2bfbb14c Mon Sep 17 00:00:00 2001 From: Yaya-Cout Date: Sun, 12 Oct 2025 10:58:59 +0200 Subject: [PATCH] [ion/usb] Fix USB descriptor --- ion/src/device/shared/usb/calculator.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ion/src/device/shared/usb/calculator.h b/ion/src/device/shared/usb/calculator.h index 5e9986b42..e411aac04 100644 --- a/ion/src/device/shared/usb/calculator.h +++ b/ion/src/device/shared/usb/calculator.h @@ -71,7 +71,7 @@ public: 1, // bInterfaceSubClass: DFU 2, // bInterfaceProtocol: DFU Mode (not DFU Runtime, which would be 1) 4, // iInterface: Index of the Interface string, see m_descriptor - &m_dfuFunctionalDescriptor), + &m_interfaceDescriptor2), m_interfaceDescriptor2( 0, // bInterfaceNumber k_dfuInterfaceAlternateSetting + 1, // bAlternateSetting @@ -84,8 +84,8 @@ public: 4, // iInterface: Index of the Interface string, see m_descriptor &m_dfuFunctionalDescriptor), m_configurationDescriptor( - 9 + 18 + 18, // wTotalLength: configuration descriptor + interface descriptor + dfu functional descriptor lengths - 2, // bNumInterfaces + 9 + 9 + 9 + 9, // wTotalLength: configuration descriptor + interface descriptor 1 + interface descriptor 2 + dfu functional descriptor lengths2 + 1, // bNumInterfaces k_bConfigurationValue, // bConfigurationValue 0, // iConfiguration: No string descriptor for the configuration 0x80, /* bmAttributes: