X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=client%2Ftask.c;fp=client%2Ftask.c;h=2b42fd87c393f755213107544e44c16e2eb068f8;hb=d963745f754d618bd6a729633050c24831e727e0;hp=4ed23eec9a830df60ccf0d7372fb38878adbba98;hpb=7be7221d08489763405ec243b3b4c38d65598d43;p=mTask.git diff --git a/client/task.c b/client/task.c index 4ed23ee..2b42fd8 100644 --- a/client/task.c +++ b/client/task.c @@ -29,6 +29,9 @@ void task_register(void) } + //Read return type + t->type = read_byte(); + //Read tasklength t->tasklength = read16(); debug("task interval: %d, length: %d\n", t->interval, t->tasklength); @@ -92,6 +95,11 @@ void task_delete(uint8_t c) } 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