Browse Source

Bugfix: bitforce: Increase serial read timeout to 30 seconds during actual mining, to tolerate more throttling

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

+ 2 - 2
driver-bitforce.c

@@ -35,7 +35,7 @@
 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)
 {
@@ -59,7 +59,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;