[flashrom] [PATCH 2/3] serprog.c: usleep() not found in MinGW, replaced to internal_delay()
Maksim Kuleshov
mmcx at mail.ru
Mon Apr 1 17:08:27 CEST 2013
>From 845f59d1aab099ccfe8536adb438371207c65aed Mon Sep 17 00:00:00 2001
From: Maksim Kuleshov <mmcx at mail.ru>
Date: Mon, 1 Apr 2013 18:56:24 +0400
Subject: [PATCH 2/3] serprog.c: usleep() not found in MinGW, replaced to
internal_delay()
Signed-off-by: Maksim Kuleshov <mmcx at mail.ru>
---
serprog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/serprog.c b/serprog.c
index c36c93d..5d1eea4 100644
--- a/serprog.c
+++ b/serprog.c
@@ -130,7 +130,7 @@ static int sp_sync_read_timeout(unsigned int loops, unsigned char *c)
msg_perr("read: %s\n", strerror(errno));
return -1;
}
- usleep(1000); /* 1ms units */
+ internal_delay(1000); /* 1ms units */
}
return 1;
}
@@ -157,7 +157,7 @@ static int sp_synchronize(void)
goto err_out;
}
/* A second should be enough to get all the answers to the buffer */
- usleep(1000 * 1000);
+ internal_delay(1000 * 1000);
sp_flush_incoming();
/* Then try up to 8 times to send syncnop and get the correct special *
--
1.7.10.4
More information about the flashrom
mailing list