Skip to content

Commit

Permalink
8byte long diag cheksum fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz-Juranek committed Jun 5, 2019
1 parent ece6e47 commit 06bc5b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion embedded/Src/lin_slcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion embedded/Src/slcan.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06bc5b7

Please sign in to comment.