mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03: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:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user