- cyclestart = getmillis();
- for(ct = 0; ct<MAXTASKS; ct++){
- //See whether the task is even in use
- if((curtask = task_get(ct)) == NULL){
-// debug("Task %d not implemented\n", ct);
- continue;
- }
+ unsigned long cyclestart = getmillis();
+ for(struct task *t = task_head(); t != NULL; t = task_next(t)){