From: ntfreak Date: Mon, 6 Jul 2009 15:41:55 +0000 (+0000) Subject: - change sleep to usleep - fixes issue under win32 build X-Git-Tag: v0.2.0~34 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cd1b2c15ab9c05ddf99ccdbcd972132ead108e33;p=openocd - change sleep to usleep - fixes issue under win32 build git-svn-id: svn://svn.berlios.de/openocd/trunk@2483 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/jtag/jlink.c b/src/jtag/jlink.c index b41731d2..aff1a6ca 100644 --- a/src/jtag/jlink.c +++ b/src/jtag/jlink.c @@ -328,7 +328,7 @@ static int jlink_init(void) LOG_INFO("J-Link initialization started / target CPU reset initiated"); jlink_simple_command(EMU_CMD_HW_TRST0); jlink_simple_command(EMU_CMD_HW_RESET0); - sleep(1); + usleep(1000); jlink_hw_jtag_version = 2;