From: Øyvind Harboe Date: Thu, 3 Mar 2011 08:16:11 +0000 (+0100) Subject: zy1000: fix incorrect usage of jtag_sleep() X-Git-Tag: v0.5.0-rc1~140 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=4da640563b95939cd3fe9275053ba3181de723c4;hp=bb0d11cba989832c0f27c2e5b664bfdc26b98cc9 zy1000: fix incorrect usage of jtag_sleep() Found by inspection: the correct thing in the context is to use usleep() rather than jtag_sleep(). Relates to JTAG over TCP/IP only. Signed-off-by: Øyvind Harboe --- diff --git a/src/jtag/zy1000/zy1000.c b/src/jtag/zy1000/zy1000.c index 3344e0ee99..a8f7ffc7a7 100644 --- a/src/jtag/zy1000/zy1000.c +++ b/src/jtag/zy1000/zy1000.c @@ -1393,7 +1393,8 @@ static void tcpipserver(void) uint32_t data; if (!readLong(&data)) return; - jtag_sleep(data); + /* Wait for some us */ + usleep(data); break; } case ZY1000_CMD_WAITIDLE: