Release semaphore on incoming message

- Discard previous solution with timer only
This commit is contained in:
2026-06-14 14:50:43 +02:00
parent 7ece650f72
commit 1b38c0f29a
+4 -2
View File
@@ -113,9 +113,11 @@ void vCANLoggerListen(void *argument)
{
// TODO: parse message send message to serial/uart
HAL_GPIO_WritePin(led_can1.port, led_can1.pin, GPIO_PIN_SET);
osTimerStart(xHeartbeatTimerCAN1, 25U);
bus = (hcan->Instance == CAN1) ? xLEDSemaphoreCAN1 : xLEDSemaphoreCAN2
osSemaphoreRelease(bus);
}
}
/* CODE END */
}