0x07 -> 0x0f in size mask

This commit is contained in:
eddyem
2020-04-15 17:28:23 +03:00
parent 77496c7be7
commit d97273f177
10 changed files with 2 additions and 34 deletions

View File

@@ -217,7 +217,7 @@ static void can_process_fifo(uint8_t fifo_num){
/* TODO: check filter match index if more than one ID can receive */
CAN_message msg;
uint8_t *dat = msg.data;
uint8_t len = box->RDTR & 0x7;
uint8_t len = box->RDTR & 0x0f;
msg.length = len;
if(len){ // message can be without data
uint32_t hb = box->RDHR, lb = box->RDLR;

0
STM32/TSYS_controller/tsys01.bin Executable file → Normal file
View File