1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-09-30 00:58:32 +03:00

tools/atrf-proxy/: make WAIT 0 wait forever

- PROTOCOL: corrected obsolete part of WAIT behaviour
- PROTOCOL: mention that WAIT 0 waits forever
- atrf-proxy.c (cmd_more): don't convert WAIT argument 0 to 1
This commit is contained in:
Werner Almesberger 2011-06-20 22:14:52 -03:00
parent 70715a15d9
commit f4ca3aed63
2 changed files with 4 additions and 5 deletions

View File

@ -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.

View File

@ -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");