Skip to content

Commit 743fc5f

Browse files
author
Ivan Seidel
committed
ThreadController now runs it's callback
1 parent 2fda3da commit 743fc5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ThreadController.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ ThreadController::ThreadController(long _interval): Thread(){
1818
ThreadController run() (cool stuf)
1919
*/
2020
void ThreadController::run(){
21+
// Run this thread before
22+
if(_onRun != NULL)
23+
_onRun();
24+
2125
long time = millis();
2226
int checks = 0;
2327
for(int i = 0; i < MAX_THREADS && checks <= cached_size; i++){

0 commit comments

Comments
 (0)