X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;ds=sidebyside;f=int%2Fmain.c;h=00c9f82999a5d632b4d56c1cf2d63892c77cc690;hb=3698f150b0c5e5ebed23b0885ced2711ef16d9f5;hp=c4417f8cfd000b501a6a4e0b7be8561629846eb2;hpb=ee5171fbc1c8e1ea7454e95b3e89c24338423523;p=mTask.git diff --git a/int/main.c b/int/main.c index c4417f8..00c9f82 100644 --- a/int/main.c +++ b/int/main.c @@ -24,6 +24,7 @@ void read_message(void) //Find next task if(input_available()){ uint8_t c = read_byte(); + uint8_t ct; debug("Receiving input: %c %02x\n", c, c); switch(c){ case MSG_SDS_SPEC: @@ -41,9 +42,10 @@ void read_message(void) break; case MSG_GET_TASK: debug("Receiving a task"); - // write_dpin(0, true); - task_register(); - // write_dpin(0, false); + ct = task_register(); + write_byte('t'); + write_byte(ct+'0'); + write_byte('\n'); break; case '\0': break;