X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;ds=sidebyside;f=int%2Fnucleo-f767-blinky%2Fsrc%2Ftask.c;h=06b738d514c22d7c98183f7998a556916a50c29d;hb=ddfd196fa4999b117701121a2f4cb1fe378f902d;hp=bd6c36dd5b5d1b5442aa1c3278dde613071d4593;hpb=c0713ad3a24ba71c79dd55ed208fcb72ad6bee08;p=mTask.git diff --git a/int/nucleo-f767-blinky/src/task.c b/int/nucleo-f767-blinky/src/task.c index bd6c36d..06b738d 100644 --- a/int/nucleo-f767-blinky/src/task.c +++ b/int/nucleo-f767-blinky/src/task.c @@ -1,10 +1,7 @@ #include #include -#ifdef ARDUINO -#include -#include -#else +#ifndef STM32F767xx #include #include #endif @@ -46,6 +43,7 @@ int task_register() //Return the task number for later removal debug("Received a task of length %d\n", tasks[ct].tlen); tasks[ct].used = true; + tasks[ct].lastrun = 0L; return ct; }