1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-13 06:01:03 +00:00

Check explicitly that ava_buffer_full equals the macro.

This commit is contained in:
Con Kolivas 2013-05-26 14:08:21 +10:00
parent e9e6ad821d
commit 596784aaf3

View File

@ -674,7 +674,7 @@ static void *avalon_send_tasks(void *userdata)
struct avalon_task at;
int idled = 0;
while (avalon_buffer_full(fd)) {
while (avalon_buffer_full(fd) == AVA_BUFFER_FULL) {
nmsleep(40);
}
@ -682,7 +682,7 @@ static void *avalon_send_tasks(void *userdata)
start_count = avalon->work_array * avalon_get_work_count;
end_count = start_count + avalon_get_work_count;
for (i = start_count, j = 0; i < end_count; i++, j++) {
if (unlikely(avalon_buffer_full(fd))) {
if (unlikely(avalon_buffer_full(fd) == AVA_BUFFER_FULL)) {
applog(LOG_WARNING,
"AVA%i: Buffer full before all work queued",
avalon->device_id);