chg: some debug
This commit is contained in:
@@ -106,6 +106,7 @@ static void *uart_receiver(void *targ) {
|
||||
while (arg->run) {
|
||||
rxlen = 0;
|
||||
if (uart_receive(sp, prx, sizeof(UsbCommand) - (prx-rx), &rxlen)) {
|
||||
|
||||
prx += rxlen;
|
||||
if (prx-rx < sizeof(UsbCommand)) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user