Skip to content

Commit

Permalink
LIN monitor rx fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz-Juranek committed Nov 6, 2018
1 parent d228458 commit 061c653
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion embedded/Src/lin_slcan.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ uint8_t addLinMasterRow(uint8_t* line);
void lin_slcan_rx(l_u8 rx_byte);
void lin_slcan_rx_timeout_handler();
void lin_slcan_skip_header_reception(uint8_t pid);
void lin_slcan_reset(void);
#endif /* LIN_SLCAN_H_ */
12 changes: 5 additions & 7 deletions embedded/Src/slcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,10 @@ static uint8_t transmitStd(uint8_t* line) {
if (lin_data)
{
open_lin_master_data_tx_data(&slot);
/* reset data reception state machine */
open_lin_hw_reset();
lin_slcan_reset();
} else
{
/* set data reception state machine */
lin_slcan_skip_header_reception(slot.pid);
}
/* set data recepcion state machine */
lin_slcan_skip_header_reception(slot.pid);

return 1;
}

Expand Down Expand Up @@ -246,6 +242,8 @@ void slCanCheckCommand()
result = terminator;
lin_type = LIN_SLAVE;
slcan_state = SLCAN_STATE_OPEN;
open_lin_hw_reset();
lin_slcan_reset();
}
break;

Expand Down
2 changes: 1 addition & 1 deletion embedded/Src/slcan.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "open_lin_hw.h"

#define VERSION_FIRMWARE_MAJOR 0
#define VERSION_FIRMWARE_MINOR 1
#define VERSION_FIRMWARE_MINOR 2

#define VERSION_HARDWARE_MAJOR 0
#define VERSION_HARDWARE_MINOR 1
Expand Down

0 comments on commit 061c653

Please sign in to comment.