mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Check for AVA_GETS_RESTART when deciding if avalon has messed up.
This commit is contained in:
parent
8b0531fb2b
commit
fb34cb1784
@ -811,7 +811,7 @@ static int64_t avalon_scanhash(struct thr_info *thr)
|
|||||||
{
|
{
|
||||||
struct cgpu_info *avalon;
|
struct cgpu_info *avalon;
|
||||||
struct work **works;
|
struct work **works;
|
||||||
int fd, ret, full;
|
int fd, ret = AVA_GETS_OK, full;
|
||||||
|
|
||||||
struct avalon_info *info;
|
struct avalon_info *info;
|
||||||
struct avalon_task at;
|
struct avalon_task at;
|
||||||
@ -934,7 +934,7 @@ static int64_t avalon_scanhash(struct thr_info *thr)
|
|||||||
elapsed.tv_sec, elapsed.tv_usec);
|
elapsed.tv_sec, elapsed.tv_usec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (result_wrong >= info->miner_count) {
|
if (result_wrong >= info->miner_count && ret != AVA_GETS_RESTART) {
|
||||||
/* This mean FPGA controller gave all wrong results, so
|
/* This mean 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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user