From 3b1180c97add20157ac63ada323be38dcc146548 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 15 May 2017 18:06:10 +0200 Subject: [PATCH] freertos: fix error message when xEventGroupSetBitsFromISR not defined, actually use it --- platform/freertos/btstack_run_loop_freertos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/freertos/btstack_run_loop_freertos.c b/platform/freertos/btstack_run_loop_freertos.c index 11c570348..09f4a8400 100644 --- a/platform/freertos/btstack_run_loop_freertos.c +++ b/platform/freertos/btstack_run_loop_freertos.c @@ -136,7 +136,8 @@ void btstack_run_loop_freertos_execute_code_on_main_thread(void (*fn)(void *arg) #if (INCLUDE_xEventGroupSetBitFromISR == 1) void btstack_run_loop_freertos_trigger_from_isr(void){ - xEventGroupSetBits(btstack_run_loop_event_group, EVENT_GROUP_FLAG_RUN_LOOP); + BaseType_t xHigherPriorityTaskWoken; + xEventGroupSetBitsFromISR(btstack_run_loop_event_group, EVENT_GROUP_FLAG_RUN_LOOP, &xHigherPriorityTaskWoken); } void btstack_run_loop_freertos_execute_code_on_main_thread_from_isr(void (*fn)(void *arg), void * arg){