AnsweredAssumed Answered

_timer_cancel()

Question asked by Alessandro Biasci on Jun 29, 2016
Latest reply on Jun 29, 2016 by David E Seymour

Hi all,

            I'm using MQX 4.2.2 and I have a problem with _timer_cancel() function call.

 

I'm calling _timer_cancel(id) within the timer's callback itself and it seems that MQX do not find myself and delete me from the scheduled timers in the system. The same function call, called outside the timer's callback works fine.

 

Question:

    - can _timer_cancel() be called inside the timer's callback itself or we need to call the function outside the timer ?

 

Best Regards,

           Alessandro.

Outcomes