mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-27 15:04:17 +00:00
fds need to be zeroed before set in modminer.
This commit is contained in:
parent
40b747bae6
commit
58bba40a03
@ -128,6 +128,7 @@ modminer_detect()
|
||||
} while(0)
|
||||
|
||||
#define status_read(eng) do { \
|
||||
FD_ZERO(&fds); \
|
||||
FD_SET(fd, &fds); \
|
||||
select(fd+1, &fds, NULL, NULL, NULL); \
|
||||
if (1 != read(fd, buf, 1)) \
|
||||
@ -139,7 +140,7 @@ select(fd+1, &fds, NULL, NULL, NULL); \
|
||||
static bool
|
||||
modminer_fpga_upload_bitstream(struct cgpu_info*modminer)
|
||||
{
|
||||
fd_set fds;
|
||||
fd_set fds;
|
||||
char buf[0x100];
|
||||
unsigned char *ubuf = (unsigned char*)buf;
|
||||
unsigned long len;
|
||||
|
Loading…
x
Reference in New Issue
Block a user