mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 12:34:27 +00:00
adl: only ask for iDrvIndex on Linux.
Should close https://github.com/veox/sgminer/issues/45
This commit is contained in:
parent
b56e65aa77
commit
2879994408
4
adl.c
4
adl.c
@ -343,7 +343,9 @@ void init_adl(int nDevs)
|
|||||||
"strUDID:%s "
|
"strUDID:%s "
|
||||||
"iBusNumber:%d "
|
"iBusNumber:%d "
|
||||||
"iDeviceNumber:%d "
|
"iDeviceNumber:%d "
|
||||||
|
#if defined(__linux)
|
||||||
"iDrvIndex:%d "
|
"iDrvIndex:%d "
|
||||||
|
#endif
|
||||||
"iFunctionNumber:%d "
|
"iFunctionNumber:%d "
|
||||||
"iVendorID:%d "
|
"iVendorID:%d "
|
||||||
"name:%s",
|
"name:%s",
|
||||||
@ -353,7 +355,9 @@ void init_adl(int nDevs)
|
|||||||
lpInfo[i].strUDID,
|
lpInfo[i].strUDID,
|
||||||
lpInfo[i].iBusNumber,
|
lpInfo[i].iBusNumber,
|
||||||
lpInfo[i].iDeviceNumber,
|
lpInfo[i].iDeviceNumber,
|
||||||
|
#if defined(__linux)
|
||||||
lpInfo[i].iDrvIndex,
|
lpInfo[i].iDrvIndex,
|
||||||
|
#endif
|
||||||
lpInfo[i].iFunctionNumber,
|
lpInfo[i].iFunctionNumber,
|
||||||
lpInfo[i].iVendorID,
|
lpInfo[i].iVendorID,
|
||||||
lpInfo[i].strAdapterName);
|
lpInfo[i].strAdapterName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user