Commit c07df341fb0ec5b9b14fc696c46408634499fa3d

Xiangfu 2014-04-22T21:02:44

Fix the diff value used on MM firmware

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-avalon2.c b/driver-avalon2.c
index 5261054..96e948a 100644
--- a/driver-avalon2.c
+++ b/driver-avalon2.c
@@ -429,7 +429,7 @@ static int avalon2_stratum_pkgs(int fd, struct pool *pool, struct thr_info *thr)
 	while (avalon2_send_pkg(fd, &pkg, thr) != AVA2_SEND_OK)
 		;
 
-	set_target(target, pool->swork.diff);
+	set_target(target, pool->sdiff);
 	memcpy(pkg.data, target, 32);
 	if (opt_debug) {
 		char *target_str;