implement a message processing queue that will hopefully aleviate the pain in working with tinyframe. this should make it possible to almost entirely get rid of async jobs for simple replies

This commit is contained in:
2017-12-22 23:10:14 +01:00
parent fa5261b65a
commit 5ca7ab1db0
8 changed files with 98 additions and 13 deletions
+5 -1
View File
@@ -196,7 +196,11 @@ static bool Tst_handleRequest(Unit *unit, TF_ID frame_id, uint8_t command, Paylo
.buf = cpy,
.len = len,
};
dbg("Rx len %d, %.*s\r\n", (int)len, (int)len, cpy);
PRINTF("Rx len %d: ", (int)len);
PUTSN((char *) cpy, len);
PUTS("\r\n");
scheduleJob(&job, TSK_SCHED_HIGH);
break;