mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 11:34:16 +00:00
USB device locking NOOP for windows (for now)
This commit is contained in:
parent
cb3e3ebfac
commit
8297304089
@ -598,6 +598,10 @@ union semun {
|
|||||||
static bool cgminer_usb_lock_bd(struct device_drv *drv, uint8_t bus_number, uint8_t device_address)
|
static bool cgminer_usb_lock_bd(struct device_drv *drv, uint8_t bus_number, uint8_t device_address)
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
// NOOP for now
|
||||||
|
drv = 0;
|
||||||
|
bus_number = device_address = 0;
|
||||||
|
return true;
|
||||||
#else
|
#else
|
||||||
struct semid_ds seminfo;
|
struct semid_ds seminfo;
|
||||||
union semun opt;
|
union semun opt;
|
||||||
@ -686,6 +690,9 @@ static bool cgminer_usb_lock(struct device_drv *drv, libusb_device *dev)
|
|||||||
static void cgminer_usb_unlock_bd(struct device_drv *drv, uint8_t bus_number, uint8_t device_address)
|
static void cgminer_usb_unlock_bd(struct device_drv *drv, uint8_t bus_number, uint8_t device_address)
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
// NOOP for now
|
||||||
|
drv = 0;
|
||||||
|
bus_number = device_address = 0;
|
||||||
#else
|
#else
|
||||||
char name[64];
|
char name[64];
|
||||||
key_t key;
|
key_t key;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user