Don't try to get new data while still processing previous data.

This commit is contained in:
Oliver Schmidt 2017-11-06 23:40:05 +01:00
parent 9a8ba804bc
commit d059cf858a

View File

@ -26,6 +26,10 @@ void error_exit(void)
void udp_recv(void)
{
if (len)
{
return;
}
len = udp_recv_len();
src = udp_recv_src();
memcpy(buf, udp_recv_buf, len);