hi, i want to restart my timer before it expires. suppose my timeout is 2 second and i want to restart it in between 0-2 second based on signal when i receive before expires.
thanks!!
hi, i want to restart my timer before it expires. suppose my timeout is 2 second and i want to restart it in between 0-2 second based on signal when i receive before expires.
thanks!!
The correct method is to call app_timer_stop()
first, and then call app_timer_start()
. The comments for app_timer_start()
say the following:
* @note When calling this method on a timer that is already running, the second start operation
* is ignored.
So if you want to restart, you'll have to stop it first.
The correct method is to call app_timer_stop()
first, and then call app_timer_start()
. The comments for app_timer_start()
say the following:
* @note When calling this method on a timer that is already running, the second start operation
* is ignored.
So if you want to restart, you'll have to stop it first.