Browse Source

Remove inappropriate memset of struct avalon result which was corrupting fan values.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
8b2b9b3d3e
  1. 1
      driver-avalon.c

1
driver-avalon.c

@ -272,7 +272,6 @@ static int avalon_get_result(int fd, struct avalon_result *ar, @@ -272,7 +272,6 @@ static int avalon_get_result(int fd, struct avalon_result *ar,
memset(result, 0, AVALON_READ_SIZE);
ret = avalon_gets(fd, result, read_count, thr, tv_finish);
memset(ar, 0, sizeof(struct avalon_result));
if (ret == AVA_GETS_OK) {
if (opt_debug) {
applog(LOG_DEBUG, "Avalon: get:");

Loading…
Cancel
Save