repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add clean-platform
[mTask.git]
/
int
/
nucleo-f767-blinky
/
src
/
task.c
diff --git
a/int/nucleo-f767-blinky/src/task.c
b/int/nucleo-f767-blinky/src/task.c
index
bd6c36d
..
06b738d
100644
(file)
--- a/
int/nucleo-f767-blinky/src/task.c
+++ b/
int/nucleo-f767-blinky/src/task.c
@@
-1,10
+1,7
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#ifdef ARDUINO
-#include <Arduino.h>
-#include <HardwareSerial.h>
-#else
+#ifndef STM32F767xx
#include <unistd.h>
#include <stdio.h>
#endif
#include <unistd.h>
#include <stdio.h>
#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;
//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;
}
return ct;
}