From 63812fb361fa084272594160b28780d28938977e Mon Sep 17 00:00:00 2001 From: Andrey Tolstoy Date: Tue, 26 May 2020 15:54:46 +0700 Subject: [PATCH] [gen2] hal: minor fix for FreeRTOS v8.2.1 --- hal/src/stm32f2xx/concurrent_hal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hal/src/stm32f2xx/concurrent_hal.cpp b/hal/src/stm32f2xx/concurrent_hal.cpp index fa20419f0e..3fe098cc9c 100644 --- a/hal/src/stm32f2xx/concurrent_hal.cpp +++ b/hal/src/stm32f2xx/concurrent_hal.cpp @@ -205,7 +205,8 @@ os_thread_notify_t os_thread_wait(system_tick_t ms, void* reserved) int os_thread_notify(os_thread_t thread, void* reserved) { if (!HAL_IsISR()) { - return xTaskNotifyGive(static_cast(thread)) != pdTRUE; + auto r = xTaskNotifyGive(static_cast(thread)); + return (r != pdTRUE); } else { BaseType_t woken = pdFALSE; vTaskNotifyGiveFromISR(static_cast(thread), &woken);