Commit d621e80f4a3914ea82e1dce352a63697164518f3

Angus Gratton 2013-12-13T22:13:53

Fix bug with find_settings not returning default value

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-drillbit.c b/driver-drillbit.c
index 39bd053..d2dc362 100644
--- a/driver-drillbit.c
+++ b/driver-drillbit.c
@@ -332,6 +332,7 @@ static config_setting *find_settings(struct cgpu_info *drillbit)
         HASH_FIND_STR(settings, search_key, setting);
         drvlog(LOG_INFO, "Using non-specific settings for device %s (serial %08x)", info->product,
                 info->serial);
+        return setting;
 }
 
 static void drillbit_send_config(struct cgpu_info *drillbit)