1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-25 21:30:37 +02:00

tools/atrf-proxy/atrf-proxy.c (cmd_zero): reduce poll delay from 100 ms to 2 ms

The overly generous delay has the effect of encouraging dubious
optimizations elsewhere. Not a good idea.
This commit is contained in:
Werner Almesberger 2011-06-09 20:54:07 -03:00
parent abe923d2ef
commit 78ab017990

View File

@ -224,7 +224,7 @@ static int cmd_zero(struct atrf_dsc *dsc, struct netio *netio, const char *cmd)
if (res < 0) if (res < 0)
return netio_printf(netio, "-I/O error\n"); return netio_printf(netio, "-I/O error\n");
if (!res) if (!res)
usleep(100*1000); usleep(2*1000);
return netio_printf(netio, "+%d\n", res); return netio_printf(netio, "+%d\n", res);
} }
return netio_printf(netio, "-unrecognized command\n"); return netio_printf(netio, "-unrecognized command\n");