diff --git a/driver-avalon.c b/driver-avalon.c index 6fc311cd..d53a3f5d 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;