Avoid having to declare additional variable
This commit is contained in:
+1
-3
@@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user