From 6888e44c329cee239730f0caa00ec907e3e22053 Mon Sep 17 00:00:00 2001 From: Tigran Soghbatyan Date: Mon, 8 Nov 2021 09:50:29 +0100 Subject: [PATCH] [BH-1025] Fix timer callbacks in switches Make queue calls from timer callbacks non "FromISR" --- module-bsp/board/rt1051/bellpx/bsp/switches/switches.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module-bsp/board/rt1051/bellpx/bsp/switches/switches.cpp b/module-bsp/board/rt1051/bellpx/bsp/switches/switches.cpp index 6a6cfbaf43497bb449dc32a133116277e0ada334..378638a91eefbea406f90fc16212eb8f332aeca9 100644 --- a/module-bsp/board/rt1051/bellpx/bsp/switches/switches.cpp +++ b/module-bsp/board/rt1051/bellpx/bsp/switches/switches.cpp @@ -126,7 +126,7 @@ namespace bsp::bell_switches latchEventFlag.setPressed(); } auto val = static_cast(timerState->notificationSource); - xQueueSendFromISR(qHandleIrq, &val, &xHigherPriorityTaskWoken); + xQueueSend(qHandleIrq, &val, 0); timerState->lastState = KeyEvents::Released; } else { @@ -153,7 +153,7 @@ namespace bsp::bell_switches default: break; } - xQueueSendFromISR(qHandleIrq, &val, &xHigherPriorityTaskWoken); + xQueueSend(qHandleIrq, &val, 0); timerState->lastState = KeyEvents::Pressed; } } @@ -173,7 +173,7 @@ namespace bsp::bell_switches } else { auto val = static_cast(timerState->notificationSource); - xQueueSendFromISR(qHandleIrq, &val, &xHigherPriorityTaskWoken); + xQueueSend(qHandleIrq, &val, 0); } }