Add Reverse for Cammus C5

This commit is contained in:
Paul Dino Jones 2024-08-06 10:06:49 -04:00
parent fda4c0dbcd
commit 2086108de6
1 changed files with 1 additions and 4 deletions

View File

@ -53,10 +53,7 @@ int cammusc5_update(WheelDevice* wheeldevice, int maxrpm, int rpm, int gear, int
}
// byte 4 is gear
if(gear > 0)
{
bytes[4] = gear-1;
}
bytes[4] = gear-1;
slogt("writing bytes x%02xx%02xx%02xx%02xx%02x from rpm %i velocity %i gear %i", bytes[0], bytes[1], bytes[2], bytes[3], bytes[4], rpm, velocity, gear);
if (wheeldevice->handle)