From d831258e8d7a3e3821d605703f11e72ef022d56f Mon Sep 17 00:00:00 2001
From: Maksim Kuleshov mmcx@mail.ru Date: Mon, 1 Apr 2013 18:56:07 +0400 Subject: [PATCH 1/3] buspirate_spi.c: usleep() not found in MinGW, replaced to internal_delay()
Signed-off-by: Maksim Kuleshov mmcx@mail.ru --- buspirate_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buspirate_spi.c b/buspirate_spi.c index d2ebc75..64128dd 100644 --- a/buspirate_spi.c +++ b/buspirate_spi.c @@ -286,7 +286,7 @@ int buspirate_spi_init(void) /* The Bus Pirate can't handle UART input buffer overflow in BBIO mode, and sending a sequence * of 0x00 too fast apparently triggers such an UART input buffer overflow. */ - usleep(10000); + internal_delay(10000); } /* We know that 20 commands of \0 should elicit at least one BBIO1 response. */ if ((ret = buspirate_wait_for_string(bp_commbuf, "BBIO")))