Jump to content

Recommended Posts

Pretty sure I know the answer, but I can't find confirmation.

If I have a subroutine that contains all the logic for a delay timer;

and this subroutine is called conditionally, based on the status of a switch (digital input);

Will this timer continue to decrement while I am not  calling the sub?

I'm thinking when I resume calling the sub, the timer will resume counting down from the "current value" when I last called it.


Can I fake it into running properly by inserting a meaningless reference to this timer into the calling logic??  Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...