Commit b790153990e4391362930a272189e9fecbc83b94

Con Kolivas 2013-05-27T01:33:54

Wait till buffer is cleared after sending idle tasks to avalon before returning from avalon_idle.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-avalon.c b/driver-avalon.c
index 0ca3206..1fd4b5a 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -494,6 +494,7 @@ static void avalon_idle(struct cgpu_info *avalon, struct avalon_info *info,
 				 info->frequency);
 		avalon_send_task(fd, &at, avalon);
 	}
+	wait_avalon_ready(fd);
 }
 
 static bool avalon_detect_one(const char *devpath)