mirror of
https://review.coreboot.org/flashrom.git
synced 2025-06-30 21:52:36 +02:00
Usleep() is not found in all versions of MinGW, use Sleep() on Windows
Handle long sleeps on non-Windows correctly. Corresponding to flashrom svn r1667. Signed-off-by: Maksim Kuleshov <mmcx@mail.ru> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:

committed by
Carl-Daniel Hailfinger

parent
02437458a6
commit
73dc0db725
@ -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_sleep(10000);
|
||||
}
|
||||
/* We know that 20 commands of \0 should elicit at least one BBIO1 response. */
|
||||
if ((ret = buspirate_wait_for_string(bp_commbuf, "BBIO")))
|
||||
|
Reference in New Issue
Block a user