Fix RPM CAN bytes

This commit is contained in:
Jasper Blanckenburg 2022-03-17 00:09:36 +01:00
parent c8e94175d1
commit 6609947618
1 changed files with 1 additions and 1 deletions

View File

@ -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