Hello everyone, I am trying to implement a blocking wait using the app_timer.
To do this, I am starting a one-shot timer whose callback function sets an initially false flag to true.
I tried to "block" using the following code:
while (!flag) { sd_app_evt_wait(); }
However, when I use the debugger, it appears that the timer handler is never called.
When I remove the while statement and only use sd_app_evt_wait(), the timer handler is called.
What could cause this? Is there another recommended way to implement an accurate blocking wait?