From 06bc5b71866b4d58d37bbe2b6145db81e9ef9622 Mon Sep 17 00:00:00 2001 From: LJ Date: Wed, 5 Jun 2019 21:36:05 +0200 Subject: [PATCH] 8byte long diag cheksum fix --- embedded/Src/lin_slcan.c | 2 +- embedded/Src/slcan.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/embedded/Src/lin_slcan.c b/embedded/Src/lin_slcan.c index de0e1d0..dbdc2ba 100644 --- a/embedded/Src/lin_slcan.c +++ b/embedded/Src/lin_slcan.c @@ -234,7 +234,7 @@ void lin_slcan_rx(l_u8 rx_byte) { open_lin_data_layer_frame.lenght = slcan_lin_slave_state_data_count; /* checksum calculation */ - if (rx_byte == open_lin_data_layer_checksum(open_lin_data_layer_frame.pid, + if (rx_byte == open_lin_data_layer_checksum(open_lin_data_layer_frame.pid & OPEN_LIN_ID_MASK, open_lin_data_layer_frame.lenght, open_lin_data_layer_frame.data_ptr)) /* TODO remove from interrupt possible function */ { /* valid checksum */ diff --git a/embedded/Src/slcan.h b/embedded/Src/slcan.h index 11400f0..f86aca9 100644 --- a/embedded/Src/slcan.h +++ b/embedded/Src/slcan.h @@ -11,7 +11,7 @@ #include "open_lin_slave_data_layer.h" #define VERSION_FIRMWARE_MAJOR 1 -#define VERSION_FIRMWARE_MINOR 4 +#define VERSION_FIRMWARE_MINOR 5 #define VERSION_HARDWARE_MAJOR 0 #define VERSION_HARDWARE_MINOR 1