X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=int%2Ftask.c;h=4ac8ce5075d8af8912c80c0ed6ea4a8faf6be22a;hb=af388f6b2c06d38b400d482ac3ccc1f819b5bf9f;hp=d00959a38037590cc8498f60896828fa1fd8ca78;hpb=fb5465ae10e39a9505634e0aaf8e1cab9710f5d7;p=mTask.git diff --git a/int/task.c b/int/task.c index d00959a..4ac8ce5 100644 --- a/int/task.c +++ b/int/task.c @@ -1,7 +1,7 @@ #include #include -#ifndef STM32F767xx +#ifndef STM #include #include #endif @@ -31,14 +31,16 @@ 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); //Read task bytecode for(unsigned int i = 0; i