1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 18:14:20 +00:00

ztex detect was broken due to bad branch split

This commit is contained in:
nelisky 2012-04-16 12:29:24 -07:00
parent 3067a414fc
commit 0649972f69

8
ztex.c
View File

@ -41,13 +41,6 @@ static void ztex_detect()
int cnt;
int i;
struct libztex_dev_list **ztex_devices;
struct cgpu_info *ztex;
ztex = calloc(1, sizeof(struct cgpu_info));
ztex->api = &ztex_hotplug_api;
ztex->threads = 1;
devices[total_devices++] = ztex;
cnt = libztex_scanDevices(&ztex_devices);
applog(LOG_WARNING, "Found %d ztex board(s)", cnt);
@ -55,6 +48,7 @@ static void ztex_detect()
for (i=0; i<cnt; i++) {
if (total_devices == MAX_DEVICES)
break;
struct cgpu_info *ztex;
ztex = calloc(1, sizeof(struct cgpu_info));
ztex->api = &ztex_api;
ztex->device_id = total_devices;