From 855de755bafc9971fe11c52556697057a9e00025 Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 28 Apr 2023 20:50:29 -0400 Subject: [PATCH] it's going to be painful --- firmware/controllers/can/can_vss.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/can/can_vss.cpp b/firmware/controllers/can/can_vss.cpp index d8c80ce548..be8dfaad42 100644 --- a/firmware/controllers/can/can_vss.cpp +++ b/firmware/controllers/can/can_vss.cpp @@ -38,7 +38,7 @@ float processBMW_e46(const CANRxFrame& frame) { uint16_t left = (((frame.data8[5] & 0x0f) << 8) | frame.data8[4]); uint16_t right = (((frame.data8[7] & 0x0f) << 8) | frame.data8[6]); - return tmp / 16.0f; + return (left + right) / (16 * 2); } float processW202(const CANRxFrame& frame) {