X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=int%2Fmain.c;h=d6d59535109da93770a954bfddf563ee3030ac00;hb=6e3b45dd6cef95c1577a91b15a1256fa4b06ca88;hp=7840876bc4ab797a68098326c9078b803b211c78;hpb=e09afe083f9077d63a8bd6c27ed8fa5da60430a8;p=mTask.git diff --git a/int/main.c b/int/main.c index 7840876..d6d5953 100644 --- a/int/main.c +++ b/int/main.c @@ -3,7 +3,8 @@ #include #include -#ifndef STM +#ifdef STM +#else #include #endif @@ -23,7 +24,7 @@ void read_message(void) //Find next task if(input_available()){ uint8_t c = read_byte(); - debug("Receiving input: %c\n", c); + debug("Receiving input: %c %02x\n", c, c); switch(c){ case MSG_SDS_SPEC: debug("Receiving an sds"); @@ -50,7 +51,6 @@ void read_message(void) break; default: debug("Unknown message: %X", c); - debugi(c); } } } @@ -79,7 +79,6 @@ void loop(void) debug("Current task to run: %d", ct); run_task(curtask); curtask->lastrun = cyclestart; - write_byte('\n'); } } @@ -95,8 +94,7 @@ int main(int argc, char *argv[]){ setup(); sds_init(); task_init(); - - debug("booting up"); + //debug("booting up"); while(true){ //Check for newetasks // debug("loop");