Skip to content
Snippets Groups Projects
Commit cf2d7736 authored by deuce's avatar deuce
Browse files

Only recieve one block at a time with recv_byte. Doing more than that is

just plain silly.  Fairly large display speed up results.

Hooray!
parent 6baa0b3b
Branches
Tags
No related merge requests found
......@@ -388,12 +388,14 @@ static int recv_byte(void* unused, unsigned timeout)
buftop=i;
bufbot=0;
}
ch=recvbuf[bufbot++];
/*
if(buftop < sizeof(recvbuf)) {
i=conn_recv(recvbuf + buftop, sizeof(recvbuf) - buftop, 0);
if(i > 0)
buftop+=i;
}
ch=recvbuf[bufbot++];
*/
/* lprintf(LOG_DEBUG,"RX: %02X", ch); */
return(ch);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment