|
@@ -61,7 +61,6 @@ int bfsb_autodetect()
|
|
|
struct bitfury_device **devicelist, *bitfury;
|
|
struct bitfury_device **devicelist, *bitfury;
|
|
|
struct spi_port *port;
|
|
struct spi_port *port;
|
|
|
int i, j;
|
|
int i, j;
|
|
|
- bool slot_on[32];
|
|
|
|
|
struct timespec t1, t2;
|
|
struct timespec t1, t2;
|
|
|
struct bitfury_device dummy_bitfury;
|
|
struct bitfury_device dummy_bitfury;
|
|
|
struct cgpu_info dummy_cgpu;
|
|
struct cgpu_info dummy_cgpu;
|
|
@@ -69,12 +68,9 @@ int bfsb_autodetect()
|
|
|
dummy_cgpu.device_data = &dummy_bitfury;
|
|
dummy_cgpu.device_data = &dummy_bitfury;
|
|
|
|
|
|
|
|
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &t1);
|
|
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &t1);
|
|
|
- for (i = 0; i < 4; i++) {
|
|
|
|
|
- slot_on[i] = 1;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
- for (i = 0; i < 32; i++) {
|
|
|
|
|
- if (slot_on[i]) {
|
|
|
|
|
|
|
+ for (i = 0; i < 4; i++)
|
|
|
|
|
+ {
|
|
|
int chip_n;
|
|
int chip_n;
|
|
|
|
|
|
|
|
port = malloc(sizeof(*port));
|
|
port = malloc(sizeof(*port));
|
|
@@ -115,7 +111,6 @@ int bfsb_autodetect()
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
free(port);
|
|
free(port);
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &t2);
|
|
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &t2);
|