break;
case MSG_GET_TASK:
debug("Receiving a task");
+ write_dpin(0, true);
task_register();
+ write_dpin(0, false);
break;
case '\0':
break;
struct task *curtask;
read_message();
+ write_byte('\n');
//Run tasks
cyclestart = millis();
debug("Current task to run: %d", ct);
run_task(curtask);
curtask->lastrun = cyclestart;
-// write_byte('\n');
}
}
gargv = argv;
#endif
- read_byte();
//Initialize systems
setup();
sds_init();
task_init();
- while(!input_available()){
- delay(100);
- }
debug("booting up");
-
while(true){
//Check for newetasks
debug("loop");