Other Parts Discussed in Thread: CAPTIVATE-FR2633
Hello,
I am trying to execute a simple function when CAPT_appHandler() has been triggered from proximity sense, otherwise appSleep.
The function takes about a few seconds to execute, but it repeats well after the proximity trigger has been removed. I assumed that I must turn off the proximity sensor until the function execution is complete.
Using the example in this link: https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/811708/msp430fr2633-don-t-call-capt_apphandler-for-500ms
I stopped and cleared the timer right after CAPT_appHandler() == true, performed the function, and re-started the timer before the end of the if-true loop.
However, the function is still occurring multiple times.
How should I properly stop the appHandler, execute command, and resume the appHandler without multiple executions?
Thank you,
Tom