Commit 4aaeb510c82f93f33120cd021afcc17d3b12234f

Con Kolivas 2013-06-21T18:22:08

Sleep after sending icarus work to emulate working at 115200 baud.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/driver-icarus.c b/driver-icarus.c
index b763cc7..1a45321 100644
--- a/driver-icarus.c
+++ b/driver-icarus.c
@@ -901,6 +901,9 @@ static int64_t icarus_scanhash(struct thr_info *thr, struct work *work,
 		return 0;
 	}
 
+	/* Simple attempt to emulate writing at 115200 baud */
+	nusleep(4444);
+
 	if (opt_debug) {
 		ob_hex = bin2hex(ob_bin, sizeof(ob_bin));
 		applog(LOG_DEBUG, "%s%d: sent %s",