mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-11 06:25:18 +00:00
Put avalon last in the sequence of adding drivers to prevent it trying to claim similar chip devices on startup.
This commit is contained in:
parent
6d7471237d
commit
fbf46c41b3
6
miner.h
6
miner.h
@ -230,15 +230,17 @@ static inline int fsync (int fd)
|
|||||||
#define MIN(x, y) ((x) > (y) ? (y) : (x))
|
#define MIN(x, y) ((x) > (y) ? (y) : (x))
|
||||||
#define MAX(x, y) ((x) > (y) ? (x) : (y))
|
#define MAX(x, y) ((x) > (y) ? (x) : (y))
|
||||||
|
|
||||||
|
/* Put avalon last to make it the last device it tries to detect to prevent it
|
||||||
|
* trying to claim same chip but different devices. */
|
||||||
#define DRIVER_PARSE_COMMANDS \
|
#define DRIVER_PARSE_COMMANDS \
|
||||||
DRIVER_ADD_COMMAND(avalon) \
|
|
||||||
DRIVER_ADD_COMMAND(bflsc) \
|
DRIVER_ADD_COMMAND(bflsc) \
|
||||||
DRIVER_ADD_COMMAND(bitforce) \
|
DRIVER_ADD_COMMAND(bitforce) \
|
||||||
DRIVER_ADD_COMMAND(bitfury) \
|
DRIVER_ADD_COMMAND(bitfury) \
|
||||||
DRIVER_ADD_COMMAND(icarus) \
|
DRIVER_ADD_COMMAND(icarus) \
|
||||||
DRIVER_ADD_COMMAND(modminer) \
|
DRIVER_ADD_COMMAND(modminer) \
|
||||||
DRIVER_ADD_COMMAND(opencl) \
|
DRIVER_ADD_COMMAND(opencl) \
|
||||||
DRIVER_ADD_COMMAND(ztex)
|
DRIVER_ADD_COMMAND(ztex) \
|
||||||
|
DRIVER_ADD_COMMAND(avalon)
|
||||||
|
|
||||||
/* Create drv_driver enum from DRIVER_PARSE_COMMANDS macro */
|
/* Create drv_driver enum from DRIVER_PARSE_COMMANDS macro */
|
||||||
#define DRIVER_ADD_COMMAND(X) DRIVER_##X,
|
#define DRIVER_ADD_COMMAND(X) DRIVER_##X,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user