repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
not working again.
[mTask.git]
/
int
/
main.c
diff --git
a/int/main.c
b/int/main.c
index
dc28e0b
..
7840876
100644
(file)
--- a/
int/main.c
+++ b/
int/main.c
@@
-30,7
+30,7
@@
void read_message(void)
sds_register();
break;
case MSG_SDS_UPD:
sds_register();
break;
case MSG_SDS_UPD:
- debug("Receiving an sds");
+ debug("Receiving an sds
update
");
//TODO do something with the return value
sds_update();
break;
//TODO do something with the return value
sds_update();
break;
@@
-40,9
+40,9
@@
void read_message(void)
break;
case MSG_GET_TASK:
debug("Receiving a task");
break;
case MSG_GET_TASK:
debug("Receiving a task");
-
write_dpin(0, true);
+
//
write_dpin(0, true);
task_register();
task_register();
-
write_dpin(0, false);
+
//
write_dpin(0, false);
break;
case '\0':
break;
break;
case '\0':
break;
@@
-50,6
+50,7
@@
void read_message(void)
break;
default:
debug("Unknown message: %X", c);
break;
default:
debug("Unknown message: %X", c);
+ debugi(c);
}
}
}
}
}
}
@@
-61,7
+62,6
@@
void loop(void)
struct task *curtask;
read_message();
struct task *curtask;
read_message();
- write_byte('\n');
//Run tasks
cyclestart = millis();
//Run tasks
cyclestart = millis();
@@
-79,6
+79,7
@@
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;
+ write_byte('\n');
}
}
}
}
@@
-98,7
+99,7
@@
int main(int argc, char *argv[]){
debug("booting up");
while(true){
//Check for newetasks
debug("booting up");
while(true){
//Check for newetasks
-
debug("loop");
+
//
debug("loop");
loop();
delay(100);
}
loop();
delay(100);
}