Skip to content

Commit

Permalink
[gen2] hal: minor fix for FreeRTOS v8.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
avtolstoy committed May 26, 2020
1 parent 67752f5 commit 63812fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hal/src/stm32f2xx/concurrent_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<TaskHandle_t>(thread)) != pdTRUE;
auto r = xTaskNotifyGive(static_cast<TaskHandle_t>(thread));
return (r != pdTRUE);
} else {
BaseType_t woken = pdFALSE;
vTaskNotifyGiveFromISR(static_cast<TaskHandle_t>(thread), &woken);
Expand Down

0 comments on commit 63812fb

Please sign in to comment.