Commit 51a44fa779bcee977c786af0dd450fcff64b1b72

Con Kolivas 2013-05-27T17:52:34

Ask for the correct amount to read in avalon get results.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-avalon.c b/driver-avalon.c
index 6fc311c..d53a3f5 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -757,7 +757,7 @@ static void *avalon_get_results(void *userdata)
 		}
 
 		avalon_wait_ready(avalon);
-		amount = avalon_read(avalon, buf, C_AVALON_READ);
+		amount = avalon_read(avalon, buf, rsize);
 
 		if (amount < 3)
 			continue;