mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 15:27:53 +00:00
avalon_cts use correct buffer
This commit is contained in:
parent
4b5f56e18d
commit
6dabdff15c
@ -252,7 +252,7 @@ static int avalon_read(struct cgpu_info *avalon, unsigned char *buf,
|
|||||||
/* Use the fact that we're reading the status with the buffer to tell
|
/* Use the fact that we're reading the status with the buffer to tell
|
||||||
* the write thread it should send more work without needing to call
|
* the write thread it should send more work without needing to call
|
||||||
* avalon_buffer_full directly. */
|
* avalon_buffer_full directly. */
|
||||||
if (avalon_cts(buf[0]))
|
if (avalon_cts(readbuf[0]))
|
||||||
cgsem_post(&info->write_sem);
|
cgsem_post(&info->write_sem);
|
||||||
|
|
||||||
/* The first 2 of every 64 bytes are status on FTDIRL */
|
/* The first 2 of every 64 bytes are status on FTDIRL */
|
||||||
|
Loading…
Reference in New Issue
Block a user