mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-10 04:31:03 +00:00
Remove inappropriate memset of struct avalon result which was corrupting fan values.
This commit is contained in:
parent
e9b6ff8f6a
commit
8b2b9b3d3e
@ -272,7 +272,6 @@ static int avalon_get_result(int fd, struct avalon_result *ar,
|
|||||||
memset(result, 0, AVALON_READ_SIZE);
|
memset(result, 0, AVALON_READ_SIZE);
|
||||||
ret = avalon_gets(fd, result, read_count, thr, tv_finish);
|
ret = avalon_gets(fd, result, read_count, thr, tv_finish);
|
||||||
|
|
||||||
memset(ar, 0, sizeof(struct avalon_result));
|
|
||||||
if (ret == AVA_GETS_OK) {
|
if (ret == AVA_GETS_OK) {
|
||||||
if (opt_debug) {
|
if (opt_debug) {
|
||||||
applog(LOG_DEBUG, "Avalon: get:");
|
applog(LOG_DEBUG, "Avalon: get:");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user