From d9bfe0f6487a2fb8fcfc94bb9fb8207e79d5d0de Mon Sep 17 00:00:00 2001 From: Flokke Date: Thu, 7 May 2026 12:12:44 +0200 Subject: [PATCH] Fix stale semaphore reference in timerIsr comment --- src/InterruptHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/InterruptHandler.cpp b/src/InterruptHandler.cpp index 096a27a..31968c4 100644 --- a/src/InterruptHandler.cpp +++ b/src/InterruptHandler.cpp @@ -43,7 +43,7 @@ void InterruptHandler_Init(void) /** * 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) { @@ -54,7 +54,7 @@ static IRAM_ATTR void timerIsr(void) tDecis++; } BaseType_t woken = pdFALSE; - xSemaphoreGiveFromISR(beepSemaphore, &woken); + vTaskNotifyGiveFromISR(beepTaskHandle, &woken); portYIELD_FROM_ISR(woken); }