Browse Source

Merge pull request #111 from luke-jr/bugfix_bitforce_id

Bugfix: BitFORCE index needs to be static to count correctly
Con Kolivas 14 years ago
parent
commit
82798f6f98
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bitforce.c

+ 1 - 1
bitforce.c

@@ -72,7 +72,7 @@ static void BFwrite(int fd, const void *buf, size_t bufLen)
 static bool bitforce_detect_one(const char *devpath)
 {
 	char pdevbuf[0x100];
-	int i = 0;
+	static int i = 0;
 
 	if (total_devices == MAX_DEVICES)
 		return false;