I'm developing an application based on SD130 1.0.0 (latest) and DevKit board with 51422 chip. The application uses timer for some synchronization purpose. Operation with timer are next:
- start timer for 2000 mS
- stop timer by some BLE event (in advertising report handler), ~500 mS after startind times, so timer has not expired yet.
- start the same timer immediately for 200mS.
But looks like timer continues counting up to 2000mS (timer handler is called every ~2000 mS). When I additionally call app_timer_stop() in timer handler for this timer then behavior is as expected - timer handler is called 200 + ~500 mS.
So, question: can be a problem calling app_timer_stop() in advertising report handler? Seems like timed isn't stopped or isn't started correctly there.