From 66099476184967290afa92f62871ad02b6836794 Mon Sep 17 00:00:00 2001 From: Jasper Date: Thu, 17 Mar 2022 00:09:36 +0100 Subject: [PATCH] Fix RPM CAN bytes --- lib/FT_2018_STW_CAN/FT_2018_STW_CAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/FT_2018_STW_CAN/FT_2018_STW_CAN.cpp b/lib/FT_2018_STW_CAN/FT_2018_STW_CAN.cpp index 39df85c..312095e 100644 --- a/lib/FT_2018_STW_CAN/FT_2018_STW_CAN.cpp +++ b/lib/FT_2018_STW_CAN/FT_2018_STW_CAN.cpp @@ -109,7 +109,7 @@ void Receive_Can_0(CAN_FRAME *temp_message) { } case CAN_ID_MS4_IGN_REV_ATH: { // rpm Vehicle_data.revol = - (temp_message->data.byte[5] | temp_message->data.byte[4] << 8); + (temp_message->data.byte[4] | temp_message->data.byte[3] << 8); break; } case CAN_ID_MS4_SPEED: { // speed