Commit 4c3fe39e94803bc1a6f51f4512469bcaf3e73986

Con Kolivas 2013-05-26T21:50:31

Add avalon reset response to debugging output.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/driver-avalon.c b/driver-avalon.c
index fe7582e..ff17640 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -309,6 +309,11 @@ static int avalon_reset(struct cgpu_info *avalon, int fd)
 	 * AA 55 AA 55 00 00 00 00 00 00 */
 	spare = AVALON_READ_SIZE - 10;
 	tmp = (uint8_t *)&ar;
+	if (opt_debug) {
+		applog(LOG_DEBUG, "AVA%d reset: get:", avalon->device_id);
+		hexdump(tmp, AVALON_READ_SIZE);
+	}
+
 	for (i = 0; i <= spare; i++) {
 		buf = &tmp[i];
 		if (buf[0] == 0xAA)