mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
icarus report usb write error information
This commit is contained in:
parent
d06c8f6546
commit
a4697bed57
@ -783,7 +783,8 @@ static int64_t icarus_scanhash(struct thr_info *thr, struct work *work,
|
||||
|
||||
err = usb_write(icarus, (char *)ob_bin, sizeof(ob_bin), &amount, C_SENDWORK);
|
||||
if (err < 0 || amount != sizeof(ob_bin)) {
|
||||
applog(LOG_ERR, "%s%i: Comms error", icarus->drv->name, icarus->device_id);
|
||||
applog(LOG_ERR, "%s%i: Comms error (err=%d amt=%d)",
|
||||
icarus->drv->name, icarus->device_id, err, amount);
|
||||
dev_error(icarus, REASON_DEV_COMMS_ERROR);
|
||||
icarus_initialise(icarus, info->baud);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user