Browse Source

Merge branch 'bugfix_bf_timeout' into bfgminer

Luke Dashjr 13 years ago
parent
commit
37400e6830
1 changed files with 2 additions and 2 deletions
  1. 2 2
      driver-bitforce.c

+ 2 - 2
driver-bitforce.c

@@ -61,7 +61,7 @@ enum {
 struct device_api bitforce_api;
 
 // Code must deal with a timeout
-#define BFopen(devpath)  serial_open(devpath, 0, 10, true)
+#define BFopen(devpath)  serial_open(devpath, 0, 300, true)
 
 static void BFgets(char *buf, size_t bufLen, int fd)
 {
@@ -85,7 +85,7 @@ static ssize_t BFwrite(int fd, const void *buf, ssize_t bufLen)
 
 static bool bitforce_detect_one(const char *devpath)
 {
-	int fdDev = BFopen(devpath);
+	int fdDev = serial_open(devpath, 0, 10, true);
 	struct cgpu_info *bitforce;
 	char pdevbuf[0x100];
 	char *s;