started communication from scratch
[mTask.git] / int / task.c
index d00959a..a08e791 100644 (file)
@@ -1,7 +1,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#ifndef STM32F767xx
+#ifndef STM
 #include <unistd.h>
 #include <stdio.h>
 #endif
@@ -31,6 +31,8 @@ int task_register(void)
        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);