repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update device name instead of record
[mTask.git]
/
client
/
task.c
diff --git
a/client/task.c
b/client/task.c
index
dfdb71b
..
1c16ce5
100644
(file)
--- a/
client/task.c
+++ b/
client/task.c
@@
-1,12
+1,8
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#ifndef STM
-#include <unistd.h>
-#include <stdio.h>
-#endif
-
#include "task.h"
#include "task.h"
+#include "spec.h"
#include "interface.h"
struct task tasks[MAXTASKS];
#include "interface.h"
struct task tasks[MAXTASKS];
@@
-30,6
+26,7
@@
void task_register(void)
memset(&tasks[ct], 0, sizeof(struct task));
//Read interval
tasks[ct].interval = read16();
memset(&tasks[ct], 0, sizeof(struct task));
//Read interval
tasks[ct].interval = read16();
+ debug("interval: %d\n", tasks[ct].interval);
//Interrupt task
if(is_interrupt_task(&tasks[ct])) {
//Interrupt task
if(is_interrupt_task(&tasks[ct])) {
@@
-46,8
+43,6
@@
void task_register(void)
//Read task bytecode
for(i = 0; i<tasks[ct].tlen; i++){
tasks[ct].bc[i] = read_byte();
//Read task bytecode
for(i = 0; i<tasks[ct].tlen; i++){
tasks[ct].bc[i] = read_byte();
-// debug("t[][%i]: 0x%02x %d", i,
-// tasks[ct].bc[i], tasks[ct].bc[i]);
}
//Return the task number for later removal
debug("Received a task of length %d", tasks[ct].tlen);
}
//Return the task number for later removal
debug("Received a task of length %d", tasks[ct].tlen);