chg: some debug

This commit is contained in:
iceman1001 2017-10-12 15:20:41 +02:00
commit d3654ab41c
2 changed files with 2 additions and 1 deletions

View file

@ -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;