From 55f6b22f7dee742d0c6e8b4e8347ecc591100ef3 Mon Sep 17 00:00:00 2001 From: fly Date: Tue, 14 May 2024 18:14:32 +0200 Subject: [PATCH] Disable reportId for now cause it breaks output Signed-off-by: fly --- Pedestal/firmware/src/device.rs | 8 ++++---- Pedestal/firmware/src/main.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Pedestal/firmware/src/device.rs b/Pedestal/firmware/src/device.rs index d7ca76f..60bf1b1 100644 --- a/Pedestal/firmware/src/device.rs +++ b/Pedestal/firmware/src/device.rs @@ -19,7 +19,7 @@ pub const CUSTOM_DESCRIPTOR: &[u8] = &[ 0x05, 0x01, // UsagePage(Generic Desktop[0x0001]) 0x09, 0x04, // UsageId(Joystick[0x0004]) 0xA1, 0x01, // Collection(Application) - 0x85, 0x01, // ReportId(1) +// 0x85, 0x01, // ReportId(1) 0x09, 0x01, // UsageId(Pointer[0x0001]) 0xA1, 0x00, // Collection(Physical) 0x09, 0x30, // UsageId(X[0x0030]) @@ -50,10 +50,10 @@ pub const CUSTOM_DESCRIPTOR: &[u8] = &[ ]; #[derive(Clone, Copy, Debug, Eq, PartialEq, Default, PackedStruct)] -#[packed_struct(endian = "lsb", size_bytes = "8")] +#[packed_struct(endian = "lsb", size_bytes = "6")] pub struct CustomInputReport { - #[packed_field] - pub report_id: u8, +// #[packed_field] +// pub report_id: u8, #[packed_field] pub axis: [u16; 2], #[packed_field] diff --git a/Pedestal/firmware/src/main.rs b/Pedestal/firmware/src/main.rs index 6403d92..c6db588 100644 --- a/Pedestal/firmware/src/main.rs +++ b/Pedestal/firmware/src/main.rs @@ -257,7 +257,7 @@ fn get_report(pins: &mut MyPins, adc1: &mut adc::Adc, cal: &Calibrati } CustomInputReport { - report_id: 1, +// report_id: 1, axis: values_norm, buttons, }