Update moza.c

Fixed error in BIT number increasing.
This commit is contained in:
Morgan Garcia 2025-06-17 15:02:13 -07:00 committed by Paul Jones
parent 218b8c255c
commit 19f7a12027
1 changed files with 5 additions and 5 deletions

View File

@ -50,16 +50,16 @@ int moza_update(SerialDevice* serialdevice, unsigned short maxrpm, unsigned shor
bytes[9] |= BIT(4); bytes[9] |= BIT(4);
if (perct >= .6) if (perct >= .6)
bytes[9] |= BIT(4);
if (perct >= .7)
bytes[9] |= BIT(5); bytes[9] |= BIT(5);
if (perct >= .7)
bytes[9] |= BIT(6);
if (perct >= .8) if (perct >= .8)
bytes[8] |= BIT(6); bytes[8] |= BIT(7);
if (perct >= .9) if (perct >= .9)
bytes[8] |= BIT(7); bytes[8] |= BIT(8);
// blinking // blinking
if (perct >= .95) if (perct >= .95)