tasks[ct].interval = read16();
//Read tasklength
tasks[ct].tlen = read16();
+ debug("task interval: %d, length: %d\n",
+ tasks[ct].interval, tasks[ct].tlen);
if(tasks[ct].tlen > MAXTASKSIZE)
die("Task is too long: %d", tasks[ct].tlen);
debug("Received a task of length %d", tasks[ct].tlen);
tasks[ct].used = true;
tasks[ct].lastrun = 0L;
+// write_byte('t');
+// write_byte(0);
+// write_byte(ct);
+// write_byte('\n');
return ct;
}