X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=int%2Fmain.c;h=7840876bc4ab797a68098326c9078b803b211c78;hb=e09afe083f9077d63a8bd6c27ed8fa5da60430a8;hp=dddd3283eb7c42dca98c6076f2042f248f73c04b;hpb=3717889965f37ab0670a4e74f5e378c5cd9996f7;p=mTask.git diff --git a/int/main.c b/int/main.c index dddd328..7840876 100644 --- a/int/main.c +++ b/int/main.c @@ -30,7 +30,7 @@ void read_message(void) 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; @@ -40,7 +40,9 @@ void read_message(void) break; case MSG_GET_TASK: debug("Receiving a task"); + // write_dpin(0, true); task_register(); + // write_dpin(0, false); break; case '\0': break; @@ -48,6 +50,7 @@ void read_message(void) break; default: debug("Unknown message: %X", c); + debugi(c); } } } @@ -76,7 +79,7 @@ void loop(void) debug("Current task to run: %d", ct); run_task(curtask); curtask->lastrun = cyclestart; -// write_byte('\n'); + write_byte('\n'); } } @@ -93,16 +96,12 @@ int main(int argc, char *argv[]){ sds_init(); task_init(); - while(!input_available()){ - delay(100); - } debug("booting up"); - while(true){ //Check for newetasks - debug("loop"); +// debug("loop"); loop(); - delay(10); + delay(100); } return 0; }