mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-10 20:51:03 +00:00
Sleep in avalon_write_ready.
This commit is contained in:
parent
674539bddc
commit
0e071c98f6
@ -388,6 +388,8 @@ static bool avalon_wait_write(int fd)
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
ret = avalon_buffer_full(fd);
|
ret = avalon_buffer_full(fd);
|
||||||
|
if (ret)
|
||||||
|
nmsleep(50);
|
||||||
} while (ret == true && i++ < 40);
|
} while (ret == true && i++ < 40);
|
||||||
|
|
||||||
return !ret;
|
return !ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user