mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Add avalon reset response to debugging output.
This commit is contained in:
parent
d0132a7702
commit
4c3fe39e94
@ -309,6 +309,11 @@ static int avalon_reset(struct cgpu_info *avalon, int fd)
|
|||||||
* AA 55 AA 55 00 00 00 00 00 00 */
|
* AA 55 AA 55 00 00 00 00 00 00 */
|
||||||
spare = AVALON_READ_SIZE - 10;
|
spare = AVALON_READ_SIZE - 10;
|
||||||
tmp = (uint8_t *)&ar;
|
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++) {
|
for (i = 0; i <= spare; i++) {
|
||||||
buf = &tmp[i];
|
buf = &tmp[i];
|
||||||
if (buf[0] == 0xAA)
|
if (buf[0] == 0xAA)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user