Mar-31-2021, 10:48 AM
(This post was last modified: Mar-31-2021, 10:49 AM by stylingpat.)
Yeah sorry about the confusing question, I tried my best to articulate it.
I’ll go through the above code this afternoon.
I was thinking this might work for me as well:
I think that might serve my purpose. Sorry I’m super amateur at coding.
I’ll go through the above code this afternoon.
I was thinking this might work for me as well:
function_one(): if reset == true: time.sleep(30) a = b if a = b: Do_somethingFunction one is looping on a main timer every 30 sec, so the code is being run through on the 30 sec, every minute. If I make the flag called “reset”. No matter where we are in the 30 seconds, the function_one code will always wait for the start of the 30 sec, then we sleep for the flag, then a=b, then function_one runs again and a=b so do_something is executed.
I think that might serve my purpose. Sorry I’m super amateur at coding.