mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
The bitforce buffer is cleared and hw error count incremented on return from a failed send_work already so no need to do it within the send_work function.
This commit is contained in:
parent
8aa61f6626
commit
65f4e2af3e
@ -421,8 +421,6 @@ re_send:
|
|||||||
goto re_send;
|
goto re_send;
|
||||||
}
|
}
|
||||||
applog(LOG_ERR, "BFL%i: Error: Send work reports: %s", bitforce->device_id, pdevbuf);
|
applog(LOG_ERR, "BFL%i: Error: Send work reports: %s", bitforce->device_id, pdevbuf);
|
||||||
bitforce->hw_errors++;
|
|
||||||
bitforce_clear_buffer(bitforce);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -463,8 +461,6 @@ re_send:
|
|||||||
|
|
||||||
if (unlikely(strncasecmp(pdevbuf, "OK", 2))) {
|
if (unlikely(strncasecmp(pdevbuf, "OK", 2))) {
|
||||||
applog(LOG_ERR, "BFL%i: Error: Send block data reports: %s", bitforce->device_id, pdevbuf);
|
applog(LOG_ERR, "BFL%i: Error: Send block data reports: %s", bitforce->device_id, pdevbuf);
|
||||||
bitforce->hw_errors++;
|
|
||||||
bitforce_clear_buffer(bitforce);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user