Skip to content

Commit

Permalink
fixed issue with runSchedule method
Browse files Browse the repository at this point in the history
  • Loading branch information
antara-chugh committed Jul 24, 2024
1 parent 224c0de commit 5cf2aa1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ Scheduler::Scheduler(DeploymentSchedule_ d[], int num, int startTime){

}
void Scheduler::SCH_runSchedule(){
for(int i=0;i<numTasks; i++){
int i=0;
while(i<numTasks){
Task_ t=task[i];
if(t.nextRunTime>=(u_int32_t)millis()){
int n=i-1;
Expand Down Expand Up @@ -83,6 +84,11 @@ void Scheduler::SCH_runSchedule(){

}
}
if(i<numTasks-1){
i++;
}else{
i=0;
}


}
Expand Down

0 comments on commit 5cf2aa1

Please sign in to comment.