repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update sub"
[mTask.git]
/
int
/
main.c
diff --git
a/int/main.c
b/int/main.c
index
00c9f82
..
3388f21
100644
(file)
--- a/
int/main.c
+++ b/
int/main.c
@@
-44,7
+44,7
@@
void read_message(void)
debug("Receiving a task");
ct = task_register();
write_byte('t');
debug("Receiving a task");
ct = task_register();
write_byte('t');
- write
_byte(ct+'0'
);
+ write
16(ct
);
write_byte('\n');
break;
case '\0':
write_byte('\n');
break;
case '\0':
@@
-81,6
+81,13
@@
void loop(void)
debug("Current task to run: %d", ct);
run_task(curtask);
curtask->lastrun = cyclestart;
debug("Current task to run: %d", ct);
run_task(curtask);
curtask->lastrun = cyclestart;
+ if(curtask->interval == 0){
+ curtask->used = false;
+ write_byte('m');
+ write_byte('d');
+ write_byte('\n');
+ }
+ write_byte('\n');
}
}
}
}