Fix stale semaphore reference in timerIsr comment

This commit is contained in:
2026-05-07 12:12:44 +02:00
parent 1edae3a481
commit d9bfe0f648
+2 -2
View File
@@ -43,7 +43,7 @@ void InterruptHandler_Init(void)
/** /**
* Called every ISR_TIME_US (10 ms). * Called every ISR_TIME_US (10 ms).
* Kept minimal: advance tDecis and wake beepTask via semaphore. * Kept minimal: advance tDecis and wake beepTask via task notification.
*/ */
static IRAM_ATTR void timerIsr(void) static IRAM_ATTR void timerIsr(void)
{ {
@@ -54,7 +54,7 @@ static IRAM_ATTR void timerIsr(void)
tDecis++; tDecis++;
} }
BaseType_t woken = pdFALSE; BaseType_t woken = pdFALSE;
xSemaphoreGiveFromISR(beepSemaphore, &woken); vTaskNotifyGiveFromISR(beepTaskHandle, &woken);
portYIELD_FROM_ISR(woken); portYIELD_FROM_ISR(woken);
} }