Commit fdcac442182759f59f4490cf69e3a7780a67fbe1

Adrian Port 2013-10-30T19:54:59

Remove duplicate HF_SEQUENCE_DISTANCE() macro, and duplicate hash_sequence from info structure

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/driver-hashfast.h b/driver-hashfast.h
index 5d78025..6c8efb2 100644
--- a/driver-hashfast.h
+++ b/driver-hashfast.h
@@ -17,7 +17,6 @@
 #include "hf_protocol.h"
 
 #define HASHFAST_MINER_THREADS 1
-#define HF_SEQUENCE_DISTANCE(tx,rx)        ((tx)>=(rx)?((tx)-(rx)):(info->num_sequence+(tx)-(rx)))
 
 // Matching fields for hf_statistics, but large #s for local accumulation, per-die
 struct hf_long_statistics {
@@ -72,7 +71,6 @@ struct hashfast_info {
 	int device_type;                            // What sort of device this is
 	int num_sequence;                           // A power of 2. What the sequence number range is.
 	int ref_frequency;                          // Reference clock rate
-	uint16_t hash_sequence;                     // The next hash sequence # to be sent
 	struct hf_g1_die_data *die_status;          // Array of per-die voltage, current, temperature sensor data
 	struct hf_long_statistics *die_statistics;  // Array of per-die error counters
 	struct hf_long_usb_stats1 stats1;