diff --git a/tools/atrf-proxy/PROTOCOL b/tools/atrf-proxy/PROTOCOL index f1a8866..84effb9 100644 --- a/tools/atrf-proxy/PROTOCOL +++ b/tools/atrf-proxy/PROTOCOL @@ -83,6 +83,7 @@ device is implicitly closed when closing the TCP session. Asynchrous interrupt notification --------------------------------- -The WAIT command is not answered until an interrupt or another command is -received. WAIT returns the value of the IRQ_STATUS register. If WAIT -times out before receiving an interrupt, it returns 0. +The WAIT command is not answered until an interrupt or until a timeout. +A timeout value of 0 means infinite. WAIT returns the value of the +IRQ_STATUS register. If WAIT times out before receiving an interrupt, +it returns 0. diff --git a/tools/atrf-proxy/atrf-proxy.c b/tools/atrf-proxy/atrf-proxy.c index f860255..b7e42b8 100644 --- a/tools/atrf-proxy/atrf-proxy.c +++ b/tools/atrf-proxy/atrf-proxy.c @@ -171,8 +171,6 @@ static int cmd_more(struct atrf_dsc *dsc, struct netio *netio, const char *cmd) if (!strcasecmp(cmd, "wait")) { int res; - if (!n) - n = 1; res = atrf_interrupt_wait(dsc, n); if (atrf_error(dsc)) return netio_printf(netio, "-I/O error\n");