mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 15:27:53 +00:00
Check for nodev on hashfast driver and disable it if it has disappeared.
This commit is contained in:
parent
1eb18061f8
commit
f5679aaa61
@ -688,6 +688,12 @@ static int64_t hfa_scanwork(struct thr_info *thr)
|
|||||||
int64_t hashes;
|
int64_t hashes;
|
||||||
int jobs, ret;
|
int jobs, ret;
|
||||||
|
|
||||||
|
if (unlikely(hashfast->usbinfo.nodev)) {
|
||||||
|
applog(LOG_WARNING, "HFA %d: device disappeared, disabling",
|
||||||
|
hashfast->device_id);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (unlikely(thr->work_restart)) {
|
if (unlikely(thr->work_restart)) {
|
||||||
restart:
|
restart:
|
||||||
ret = hfa_send_frame(hashfast, HF_USB_CMD(OP_WORK_RESTART), 0, (uint8_t *)NULL, 0);
|
ret = hfa_send_frame(hashfast, HF_USB_CMD(OP_WORK_RESTART), 0, (uint8_t *)NULL, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user