Commit 4dae4cb993c84b4b51e4483a676e4eacbf966dd3

Angus Gratton 2014-02-19T21:24:11

Drillbit: Fix typo in previous commit

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-drillbit.c b/driver-drillbit.c
index 282b858..856e331 100644
--- a/driver-drillbit.c
+++ b/driver-drillbit.c
@@ -318,7 +318,7 @@ static config_setting *find_settings(struct cgpu_info *drillbit)
 	}
 
 	// Search by serial
-	sprintf(search_key, "%08x", drillbit->serial);
+	sprintf(search_key, "%08x", info->serial);
 	HASH_FIND_STR(settings, search_key, setting);
 	if (setting) {
 		drvlog(LOG_INFO, "Using serial specific settings for serial %s", search_key);