fixed error on can parsing
This commit is contained in:
@@ -139,6 +139,10 @@ void byteToHex(uint8_t byte, char * hex) {
|
||||
hex[1] = hexLookup[byte & 0x0F];
|
||||
}
|
||||
|
||||
|
||||
static FDCAN_RxHeaderTypeDef RxHeader = {0};
|
||||
static uint8_t RxData[8] = {0};
|
||||
|
||||
void CarCanTask_func(void *argument) {
|
||||
|
||||
// for testing accept all messages from the car can bus
|
||||
@@ -160,8 +164,7 @@ void CarCanTask_func(void *argument) {
|
||||
Error_Handler();
|
||||
}
|
||||
|
||||
FDCAN_RxHeaderTypeDef RxHeader;
|
||||
uint8_t RxData[8];
|
||||
|
||||
|
||||
for(;;) {
|
||||
// wait for interrupt event on any fifo
|
||||
|
||||
Reference in New Issue
Block a user