From e4d23548386133037c0f9ccc02e56facd718d2ce Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 22 Oct 2014 01:05:58 +0300 Subject: [PATCH] don't send new stuff while receiving debug --- host/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/host/main.c b/host/main.c index 8f76844..f8f74c9 100644 --- a/host/main.c +++ b/host/main.c @@ -994,6 +994,12 @@ int main(int argc, char *argv[]) /* debug text */ buf_dbg[reaped_urb->actual_length] = 0; printf("%s", buf_dbg); + + // continue receiving debug before sending out stuff + tout.tv_sec = 0; + tout.tv_usec = 1000; + timeout = &tout; + continue; } else { fprintf(stderr, "reaped unknown urb? %p #%zu\n", -- 2.39.5