Skip to content

Commit

Permalink
Merge pull request #22 from Denages/issue21
Browse files Browse the repository at this point in the history
Fixes next run time on initialization
  • Loading branch information
ivanseidel authored May 16, 2017
2 parents 2ffb25b + 55b9855 commit a7eda0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Thread::Thread(void (*callback)(void), unsigned long _interval){
enabled = true;
onRun(callback);
_cached_next_run = 0;
last_run = 0;
last_run = millis();

ThreadID = (int)this;
#ifdef USE_THREAD_NAMES
Expand Down

0 comments on commit a7eda0f

Please sign in to comment.