<p dir="ltr">If this were a problem with an omitted statement involving a normal variable, I'd guess you're missing a volatile qualifier. I'm not 100% sure volatile is a valid qualifier for functions, but try it.<br>

If RTOS stands for real time OS, then reading up on volatile would be a really good idea.</p>
<p dir="ltr">P.S. Sorry Carl, you're going to receive this twice. I forget to CC the list.</p>