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 <oyvind.harboe@zylin.com>
__archive__
Øyvind Harboe 2011-03-03 09:16:11 +01:00
parent bb0d11cba9
commit 4da640563b
1 changed files with 2 additions and 1 deletions

View File

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