Offset needs to be incremented after avalon reads.
diff --git a/driver-avalon.c b/driver-avalon.c
index 537ace1..9408676 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -796,6 +796,7 @@ static void *avalon_get_results(void *userdata)
}
memcpy(&readbuf[offset], &buf, ret);
+ offset += ret;
}
return NULL;
}