}
+ //Read return type
+ t->type = read_byte();
+
//Read tasklength
t->tasklength = read16();
debug("task interval: %d, length: %d\n", t->interval, t->tasklength);
}
t = task_next(t);
}
+ //Write acknowledgement
+ write_byte('d');
+ write16(c);
+ write16(t->value);
+ write_byte('\n');
if(t != NULL){
//We found the task, now we move everything from the end of the task up