X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=client%2Ftask.c;h=266029f51ee17b87f3d36dc58d66c17bbcfacbbd;hb=9b185b6f0d9d08bd5e3305ee9ebc50e1ff3737a9;hp=9206a130d55b7ff665903b5e9468531f215b3898;hpb=4f5bec7a819e8a8ee9ee30b761c2159df0a7d8a4;p=mTask.git diff --git a/client/task.c b/client/task.c index 9206a13..266029f 100644 --- a/client/task.c +++ b/client/task.c @@ -50,9 +50,11 @@ void task_register(void) debug("Received a task of length %d", t->tasklength); t->lastrun = 0L; t->taskid = taskid++; + t->value = 0; write_byte('t'); write16(t->taskid); + write16(mem_free()); write_byte('\n'); debug("free memory: %lu\n", mem_free()); } @@ -90,6 +92,10 @@ void task_delete(uint8_t c) } t = task_next(t); } + //Write acknowledgement + write_byte('d'); + write16(c); + write_byte('\n'); if(t != NULL){ //We found the task, now we move everything from the end of the task up