1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Avalon BTB allow partial work to be transferred

This commit is contained in:
Kano 2013-08-07 21:25:33 +10:00
parent 6dabdff15c
commit ecc9457b6b

View File

@ -984,7 +984,13 @@ static void *avalon_send_tasks(void *userdata)
applog(LOG_INFO,
"%s%i: Buffer full after only %d of %d work queued",
avalon->drv->name, avalon->device_id, j, avalon_get_work_count);
break;
if (usb_ident(avalon) != IDENT_BTB)
break;
else {
while (avalon_buffer_full(avalon))
cgsem_wait(&info->write_sem);
}
}
if (likely(j < avalon->queued && !info->overheat && avalon->works[i])) {