notaz.gp2x.de
/
megadrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beaf6d8
)
don't send new stuff while receiving debug
author
notaz
<notasas@gmail.com>
Tue, 21 Oct 2014 22:05:58 +0000
(
01:05
+0300)
committer
notaz
<notasas@gmail.com>
Sat, 25 Oct 2014 17:18:15 +0000
(20:18 +0300)
host/main.c
patch
|
blob
|
blame
|
history
diff --git
a/host/main.c
b/host/main.c
index
8f76844
..
f8f74c9
100644
(file)
--- 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",