Commit 6f087246f79a77b4775db3dfbf421ea6e04bc265

freebitcoinslist 2014-04-02T22:04:23

Update to diver-avalon2.c Possible fix to the avalon2 driver

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-avalon2.c b/driver-avalon2.c
index 290033f..0312e73 100644
--- a/driver-avalon2.c
+++ b/driver-avalon2.c
@@ -233,7 +233,7 @@ static int decode_pkg(struct thr_info *thr, struct avalon2_ret *ar, uint8_t *pkg
 				break;
 			} else
 				info->matching_work[modular_id * AVA2_DEFAULT_MINERS + miner]++;
-			nonce2 = bswap_32(nonce2);
+			nonce2 = be32toh(nonce2);
 			nonce = be32toh(nonce);
 			nonce -= 0x180;