Avoid having to declare additional variable

This commit is contained in:
2026-06-14 14:56:32 +02:00
parent 5f1695dc0d
commit 5b500d72ff
+1 -3
View File
@@ -113,9 +113,7 @@ void vCANLoggerListen(void *argument)
{ {
// TODO: parse message send message to serial/uart // TODO: parse message send message to serial/uart
osSemaphoreRelease( (hcan->Instance == CAN1) ? xLEDSemaphoreCAN1 : xLEDSemaphoreCAN2 );
bus = (hcan->Instance == CAN1) ? xLEDSemaphoreCAN1 : xLEDSemaphoreCAN2
osSemaphoreRelease(bus);
} }
} }