From 232cc7365e9f39fb52bf93c465ebb6936c6ee8db Mon Sep 17 00:00:00 2001 From: Michael Wagner Date: Sat, 28 Jul 2018 19:43:43 +0200 Subject: [PATCH] Semaphore in ISR changed --- src/CAN.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CAN.c b/src/CAN.c index 259a32c..826f9db 100644 --- a/src/CAN.c +++ b/src/CAN.c @@ -73,7 +73,7 @@ static void CAN_isr(void *arg_p) { | __CAN_IRQ_ARB_LOST // 0x40 | __CAN_IRQ_BUS_ERR // 0x80 )) != 0) { - xSemaphoreGive(sem_tx_complete); + xSemaphoreGiveFromISR(sem_tx_complete, &higherPriorityTaskWoken); } // check if any higher priority task has been woken by any handler