Commit 7506e499b91608ea722e0e6d99966236bcd777f1

Con Kolivas 2013-05-27T20:37:21

Offset needs to be incremented after avalon reads.

1
2
3
4
5
6
7
8
9
10
11
12
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;
 }