mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Reinstate wrong work count to reset avalon regardless and display number of wrong results.
This commit is contained in:
parent
47309e1a18
commit
1c4d1ac863
@ -939,12 +939,12 @@ static int64_t avalon_scanhash(struct thr_info *thr)
|
|||||||
elapsed.tv_sec, elapsed.tv_usec);
|
elapsed.tv_sec, elapsed.tv_usec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (result_wrong >= avalon_get_work_count && ret != AVA_GETS_RESTART) {
|
if (result_wrong >= avalon_get_work_count) {
|
||||||
/* This mean FPGA controller gave all wrong results, so
|
/* This means FPGA controller gave all wrong results, so
|
||||||
* try to reset the Avalon */
|
* try to reset the Avalon */
|
||||||
do_avalon_close(thr);
|
do_avalon_close(thr);
|
||||||
applog(LOG_ERR,
|
applog(LOG_ERR,
|
||||||
"AVA%i: FPGA controller mess up", avalon->device_id);
|
"AVA%i: FPGA controller mess up, %d wrong results", avalon->device_id, result_wrong);
|
||||||
dev_error(avalon, REASON_DEV_COMMS_ERROR);
|
dev_error(avalon, REASON_DEV_COMMS_ERROR);
|
||||||
sleep(1);
|
sleep(1);
|
||||||
avalon_init(avalon);
|
avalon_init(avalon);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user