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

Bugfix: BitFORCE index needs to be static to count correctly

This commit is contained in:
Luke Dashjr 2012-02-10 21:33:26 -05:00
parent 5ec684ce2b
commit 5be4bf70fe

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)
{
char pdevbuf[0x100];
int i = 0;
static int i = 0;
if (total_devices == MAX_DEVICES)
return false;