mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Reset avalon->device_fd after it is closed.
This commit is contained in:
parent
a640164381
commit
8b1a247106
@ -659,16 +659,16 @@ static bool avalon_detect_one(const char *devpath)
|
|||||||
info->temp_old = 0;
|
info->temp_old = 0;
|
||||||
info->frequency = frequency;
|
info->frequency = frequency;
|
||||||
|
|
||||||
avalon->device_fd = -1;
|
|
||||||
|
|
||||||
ret = avalon_reset(avalon, fd);
|
ret = avalon_reset(avalon, fd);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
; /* FIXME: I think IT IS avalon and wait on reset;
|
; /* FIXME: I think IT IS avalon and wait on reset;
|
||||||
* avalon_close(fd);
|
* avalon_close(fd);
|
||||||
* return false; */
|
* return false; */
|
||||||
}
|
}
|
||||||
|
|
||||||
avalon_close(fd);
|
avalon_close(fd);
|
||||||
|
|
||||||
|
avalon->device_fd = -1;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user