Fix dmesg 'Invalid code 768 type 1' error

Signed-off-by: fly <merspieler@alwaysdata.net>
This commit is contained in:
fly 2024-12-03 00:41:16 +01:00
parent dda8257dce
commit 08127eb7b0

View file

@ -17,7 +17,7 @@ use usbd_human_interface_device::{
#[rustfmt::skip]
pub const CUSTOM_DESCRIPTOR: &[u8] = &[
0x05, 0x01, // UsagePage(Generic Desktop[0x0001])
0x09, 0x04, // UsageId(Joystick[0x0004])
0x09, 0x01, // UsageId(Joystick[0x0001])
0xA1, 0x01, // Collection(Application)
0x85, 0x01, // ReportId(1)
0x05, 0x09, // UsagePage(Button[0x0009])