Browse Source

Merge commit '58bba40' into bfgminer

Conflicts:
	driver-modminer.c
Luke Dashjr 13 years ago
parent
commit
31eaca6a9c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      driver-modminer.c

+ 2 - 1
driver-modminer.c

@@ -177,6 +177,7 @@ modminer_reopen(struct cgpu_info*modminer)
 } while(0)
 } while(0)
 
 
 #define status_read(eng)  do {  \
 #define status_read(eng)  do {  \
+FD_ZERO(&fds); \
 FD_SET(fd, &fds);  \
 FD_SET(fd, &fds);  \
 select(fd+1, &fds, NULL, NULL, NULL);  \
 select(fd+1, &fds, NULL, NULL, NULL);  \
 	if (1 != read(fd, buf, 1))  \
 	if (1 != read(fd, buf, 1))  \
@@ -189,7 +190,7 @@ static bool
 modminer_fpga_upload_bitstream(struct cgpu_info*modminer)
 modminer_fpga_upload_bitstream(struct cgpu_info*modminer)
 {
 {
 	struct modminer_fpga_state *state = modminer->thr[0]->cgpu_data;
 	struct modminer_fpga_state *state = modminer->thr[0]->cgpu_data;
-fd_set fds;
+	fd_set fds;
 	char buf[0x100];
 	char buf[0x100];
 	unsigned char *ubuf = (unsigned char*)buf;
 	unsigned char *ubuf = (unsigned char*)buf;
 	unsigned long len, flen;
 	unsigned long len, flen;