Fix USB enumeration on OS X (#640)

Hopefully without breaking the others.

Summary of the changes:
- Device descriptor reports the device is bus powered and requires
  100mA max.
- HID descriptor version bumped to 1.11 (was 1.10)
- Added string index for Interface and HID descriptors (which seems to
  make OS X happy)
This commit is contained in:
Jean-Michel Picod
2023-07-26 14:21:55 +02:00
committed by GitHub
parent 8868752e37
commit e3d2e7d778
6 changed files with 37 additions and 8 deletions

View File

@@ -55,6 +55,10 @@ static STRINGS: &'static [&'static str] = &[
"OpenSK",
// Serial number
"v1.0",
// Interface description + main HID string
"FIDO2",
// vendor HID string
"Vendor HID",
];
// State for loading and holding applications.