Not exactly. I need the countdown to pause when that flag is set with the switch on interrupt and resume where we left off when the flag is cleared.
Current code continues to count and the function exits as expected when the counter finishes, even if the pause is active.
I do have the pause functioning properly with other functions, just not where the RTC is concerned.
Seems I have a serious lack of understanding when it comes to time! Lol
Does this answer your question and add some clarity? I know it can be extremely difficult to troubleshoot a problem without clear information. I’m so close to the program (about three months of development time) it is hard to know what to post and what is too much information.
Happy to provide additional information. I can’t post all the code, unfortunately. It’s thousands of lines of code and pretty specific to the other hardware I’m using.
On the other hand, thanks to the forum, I’ve managed to solve quite a few smaller issues others may find useful as code snippets. I’m going to try and strip those out and give back to the community.
Plank