From 19f7a12027998bfc61f3d02ac57426af81ff0366 Mon Sep 17 00:00:00 2001 From: Morgan Garcia Date: Tue, 17 Jun 2025 15:02:13 -0700 Subject: [PATCH] Update moza.c Fixed error in BIT number increasing. --- src/monocoque/devices/serial/moza.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/monocoque/devices/serial/moza.c b/src/monocoque/devices/serial/moza.c index f98f5d3..0c66f7e 100644 --- a/src/monocoque/devices/serial/moza.c +++ b/src/monocoque/devices/serial/moza.c @@ -50,16 +50,16 @@ int moza_update(SerialDevice* serialdevice, unsigned short maxrpm, unsigned shor bytes[9] |= BIT(4); if (perct >= .6) - bytes[9] |= BIT(4); - - if (perct >= .7) bytes[9] |= BIT(5); + if (perct >= .7) + bytes[9] |= BIT(6); + if (perct >= .8) - bytes[8] |= BIT(6); + bytes[8] |= BIT(7); if (perct >= .9) - bytes[8] |= BIT(7); + bytes[8] |= BIT(8); // blinking if (perct >= .95)