Wait till buffer is cleared after sending idle tasks to avalon before returning from avalon_idle.
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)