From e1b71850bb93c4d422ac1995c4835a239ee6097c Mon Sep 17 00:00:00 2001 From: Paul Dino Jones Date: Mon, 16 Sep 2024 16:48:17 -0400 Subject: [PATCH] Fix velocity bytes on cammus c12 hid message --- src/monocoque/devices/usb/wheels/cammusc12.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/monocoque/devices/usb/wheels/cammusc12.c b/src/monocoque/devices/usb/wheels/cammusc12.c index 31b7588..a847360 100644 --- a/src/monocoque/devices/usb/wheels/cammusc12.c +++ b/src/monocoque/devices/usb/wheels/cammusc12.c @@ -35,8 +35,8 @@ int cammusc12_update(WheelDevice* wheeldevice, int maxrpm, int rpm, int gear, in // bytes 2 and 3 are a 16 bit velocity if ( velocity > 0 ) { - bytes[4] = (velocity >> 8) & 0xFF; - bytes[5] = velocity & 0xFF; + bytes[5] = (velocity >> 8) & 0xFF; + bytes[4] = velocity & 0xFF; } // byte 4 is gear