Commit a630532a0d73b4c5c073c8e1580041d342f1c145

Con Kolivas 2014-02-08T08:08:28

Adjust antminer U1 timing according to command line frequency set, fixing the need for icarus timing on the command line.

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 04c25c3..49a61a7 100644
--- a/driver-icarus.c
+++ b/driver-icarus.c
@@ -106,7 +106,8 @@ ASSERT1(sizeof(uint32_t) == 4);
 // Per FPGA
 #define CAIRNSMORE2_HASH_TIME 0.0000000066600
 #define NANOSEC 1000000000.0
-#define ANTMINERUSB_HASH_TIME 0.0000000006450
+#define ANTMINERUSB_HASH_MHZ  0.000000125
+#define ANTMINERUSB_HASH_TIME (ANTMINERUSB_HASH_MHZ / (double)(opt_anu_freq))
 #define CAIRNSMORE2_INTS 4
 
 // Icarus Rev3 doesn't send a completion message when it finishes