Open phillip-toone opened 5 years ago
Not right now as I put these flags under private. boolean Reset, Stop, Paused;
You can change them to public if you want or just add a new function.
Sent from my iPhone
On Mar 15, 2019, at 5:12 PM, Phillip Toone notifications@github.com wrote:
Is there a way to query the state of the timer to see if it is running. I use a global boolean variable called isTimerRunning that I set to true or false every time I pause or resume the timer. It seems to me that there would be a method I can use to request the state of the timer. I've looked but haven't been able to find anything in the examples codes or in the keywords.txt file.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
The following function give me what I was looking for:
boolean isTimerRunning() // output true if timer is running.
{
if(Paused)
return false;
else
return true;
}
I would like to add this code to this public library but I am not sure the best way to do this. Should I fork the project, make the changes, and push the changes back into master. Sorry if this is a stupid question but I am a novice with github and would like to learn. Thanks.
I’ll add it.
Sent from my iPhone
On Mar 18, 2019, at 2:38 PM, Phillip Toone notifications@github.com wrote:
The following function give me what I was looking for:
boolean isTimerRunning() // output true if timer is running. { if(Paused) return false; else return true; } I would like to add this code to this public library but I am not sure the best way to do this. Should I fork the project, make the changes, and push the changes back into master. Sorry if this is a stupid question but I am a novice with github and would like to learn. Thanks.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Is there a way to query the state of the timer to see if it is running. I use a global boolean variable called isTimerRunning that I set to true or false every time I pause or resume the timer. It seems to me that there would be a method I can use to request the state of the timer. I've looked but haven't been able to find anything in the examples codes or in the keywords.txt file.