Browse Source

Add avalon reset response to debugging output.

Con Kolivas 12 years ago
parent
commit
4c3fe39e94
1 changed files with 5 additions and 0 deletions
  1. 5 0
      driver-avalon.c

+ 5 - 0
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)