mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Icarus USB write failure is also a comms error
This commit is contained in:
parent
6d6692ce9a
commit
c2b1504e50
@ -691,6 +691,10 @@ static int64_t icarus_scanhash(struct thr_info *thr, struct work *work,
|
|||||||
ret = icarus_write(fd, ob_bin, sizeof(ob_bin));
|
ret = icarus_write(fd, ob_bin, sizeof(ob_bin));
|
||||||
if (ret) {
|
if (ret) {
|
||||||
do_icarus_close(thr);
|
do_icarus_close(thr);
|
||||||
|
applog(LOG_ERR, "ICA%i: Comms error", icarus->device_id);
|
||||||
|
icarus->device_last_not_well = time(NULL);
|
||||||
|
icarus->device_not_well_reason = REASON_DEV_COMMS_ERROR;
|
||||||
|
icarus->dev_comms_error_count++;
|
||||||
return 0; /* This should never happen */
|
return 0; /* This should never happen */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user