Better way to avoid race condition, only notification lives in CAN task

- Runs only once
- Only critical notification is inside task
- CAN message during boot will not be lost, instead put inside FIFO0
This commit is contained in:
2026-06-15 14:30:35 +02:00
parent 975acb8c3e
commit 2c14d095f7
2 changed files with 5 additions and 10 deletions
+1 -1
View File
@@ -110,6 +110,7 @@ int main(void)
MX_SDIO_SD_Init();
/* USER CODE BEGIN 2 */
CAN_Logger_Init(&hcan1, &hcan2);
/* USER CODE END 2 */
/* Init scheduler */
@@ -184,7 +185,6 @@ int main(void)
/* USER CODE END RTOS_EVENTS */
/* USER CODE BEGIN 3 */
CAN_Logger_Init(&hcan1, &hcan2);
/* USER CODE END 3 */
/* Start scheduler */