Ask for the correct amount to read in avalon get results.
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;