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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.