From b473dea1bb01cca25ca10b2f6f079a6d0ada01fe Mon Sep 17 00:00:00 2001 From: hyx Date: Thu, 7 May 2026 23:50:49 +0800 Subject: [PATCH] change HID name to SQ01-PDD-D1 --- App/Version.h | 2 +- USB/USB_enum.c | 40 ++++++++++++++++++++++++++++------------ 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/App/Version.h b/App/Version.h index 96ddbd5..eee2f9b 100644 --- a/App/Version.h +++ b/App/Version.h @@ -6,7 +6,7 @@ #endif -#define CVERSION "1-3-9" +#define CVERSION "1-4-1" #define VERSIONLEN 5 #define DEVICEMOD "SQ01-PDD-D1" diff --git a/USB/USB_enum.c b/USB/USB_enum.c index 71ccc19..943d81c 100644 --- a/USB/USB_enum.c +++ b/USB/USB_enum.c @@ -177,20 +177,36 @@ const u8 usbHidPosProductStringDescriptor[] = { * Const Name : usbHidKbdProductStringDescriptor * Description: String Descriptor for get descriptor standard request **************************************************************************/ +//const u8 usbHidKbdProductStringDescriptor[] = { +//0x18, +//0x03, +//0x48, 0x00, //H +//0x49, 0x00, //I +//0x44, 0x00, //D +//0x4B, 0x00, //K +//0x65, 0x00, //e +//0x79, 0x00, //y +//0x42, 0x00, //B +//0x6F, 0x00, //o +//0x61, 0x00, //a +//0x72, 0x00, //r +//0x64, 0x00 //d +//}; + const u8 usbHidKbdProductStringDescriptor[] = { -0x18, +0x18, // 0x03, -0x48, 0x00, //H -0x49, 0x00, //I -0x44, 0x00, //D -0x4B, 0x00, //K -0x65, 0x00, //e -0x79, 0x00, //y -0x42, 0x00, //B -0x6F, 0x00, //o -0x61, 0x00, //a -0x72, 0x00, //r -0x64, 0x00 //d +0x53,0x00, // S +0x51,0x00, // Q +0x30,0x00, // 0 +0x31,0x00, // 1 +0x2D,0x00, // - +0x50,0x00, // P +0x44,0x00, // D +0x44,0x00, // D +0x2D,0x00, // - +0x44,0x00, // D +0x31,0x00 // 1 }; /***************************************************************************