Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fd9ebfe

Browse files
authored
Merge pull request ivanseidel#20 from wvmcastro/master
Correcao na condicao do laco da funcao ThreadController::run()
2 parents 0d51a2b + 1c43b8d commit fd9ebfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ThreadController.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void ThreadController::run(){
2424

2525
unsigned long time = millis();
2626
int checks = 0;
27-
for(int i = 0; i < MAX_THREADS && checks <= cached_size; i++){
27+
for(int i = 0; i < MAX_THREADS && checks < cached_size; i++){
2828
// Object exists? Is enabled? Timeout exceeded?
2929
if(thread[i]){
3030
checks++;

0 commit comments

Comments
 (0)