From 4ad34579c7a0c89a7b80b7114134f1aa36e7e8e3 Mon Sep 17 00:00:00 2001 From: Marc Riera Irigoyen Date: Sat, 15 Apr 2023 13:56:43 +0200 Subject: [PATCH] Fix for P4/B2-B7 notches --- src/controller/emulated/sotp031201_p4b2b7.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/emulated/sotp031201_p4b2b7.rs b/src/controller/emulated/sotp031201_p4b2b7.rs index 25ce65a..d4d5ad7 100644 --- a/src/controller/emulated/sotp031201_p4b2b7.rs +++ b/src/controller/emulated/sotp031201_p4b2b7.rs @@ -15,7 +15,7 @@ pub const STRINGS: [u8; 16] = [0x02, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0 pub const DEVICE_DESCRIPTOR: DeviceDescriptor = DeviceDescriptor{b_device_class: 0x00, b_device_sub_class: 0x0, id_vendor: 0x0AE4, id_product: 0x0101, i_manufacturer: "TAITO", i_product: "Densha de Go! Plug & Play (MTC P4/B2-B7 mode)", i_serial_number: "SOTP-031201"}; const POWER_NOTCHES: [u8; 6] = [0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0C]; -const BRAKE_NOTCHES: [u8; 10] = [0x08, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x02, 0x01]; +const BRAKE_NOTCHES: [u8; 10] = [0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x02, 0x02, 0x01]; bitflags! { struct Buttons1: u8 { @@ -66,4 +66,4 @@ pub fn update_gadget(state: &mut ControllerState) { if let Ok(mut file) = File::create(ENDPOINT1) { file.write(&data).ok(); } -} \ No newline at end of file +}