Fix velocity bytes on cammus c12 hid message

This commit is contained in:
Paul Dino Jones 2024-09-16 16:48:17 -04:00
parent a81004418d
commit e1b71850bb
1 changed files with 2 additions and 2 deletions

View File

@ -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 // bytes 2 and 3 are a 16 bit velocity
if ( velocity > 0 ) if ( velocity > 0 )
{ {
bytes[4] = (velocity >> 8) & 0xFF; bytes[5] = (velocity >> 8) & 0xFF;
bytes[5] = velocity & 0xFF; bytes[4] = velocity & 0xFF;
} }
// byte 4 is gear // byte 4 is gear