X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=int%2Fmain.c;h=b813ab2558c361016c1f014a4ecec256eeb67aba;hb=b55c1c423b6f00357b2ae2bbdd2abcf4456fd0cd;hp=dddd3283eb7c42dca98c6076f2042f248f73c04b;hpb=3717889965f37ab0670a4e74f5e378c5cd9996f7;p=mTask.git diff --git a/int/main.c b/int/main.c index dddd328..b813ab2 100644 --- a/int/main.c +++ b/int/main.c @@ -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; @@ -76,7 +78,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 +95,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"); loop(); - delay(10); + delay(100); } return 0; }