Commit 1f06c1c8304f212b70d17decf971136de10e62c1

Con Kolivas 2014-01-25T14:01:33

Label HFA devices as B or S when their configuration matches babyjet or sierra.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 072f50e..e40e85f 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -344,6 +344,11 @@ tryagain:
 	info->hash_sequence_tail = 0;
 	info->device_sequence_tail = 0;
 
+	if (info->asic_count == 12)
+		hashfast->drv->name = "HFS";
+	else if (info->asic_count == 4)
+		hashfast->drv->name = "HFB";
+
 	// Size in bytes of the core bitmap in bytes
 	info->core_bitmap_size = (((info->asic_count * info->core_count) + 31) / 32) * 4;