1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 13:04:29 +00:00

Merge pull request #111 from luke-jr/bugfix_bitforce_id

Bugfix: BitFORCE index needs to be static to count correctly
This commit is contained in:
Con Kolivas 2012-02-10 18:42:58 -08:00
commit 82798f6f98

View File

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