fixed error on can parsing

This commit is contained in:
2024-05-28 04:55:31 +02:00
parent eb5733da97
commit 452246951b
3 changed files with 26 additions and 9 deletions

View File

@@ -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