mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
More style police on bitforce.
This commit is contained in:
parent
7ada258bbf
commit
44726324c2
@ -96,10 +96,9 @@ static bool bitforce_detect_one(const char *devpath)
|
|||||||
|
|
||||||
static char bitforce_detect_auto()
|
static char bitforce_detect_auto()
|
||||||
{
|
{
|
||||||
return
|
return (serial_autodetect_udev (bitforce_detect_one, "BitFORCE*SHA256") ?:
|
||||||
serial_autodetect_udev (bitforce_detect_one, "BitFORCE*SHA256") ?:
|
|
||||||
serial_autodetect_devserial(bitforce_detect_one, "BitFORCE_SHA256") ?:
|
serial_autodetect_devserial(bitforce_detect_one, "BitFORCE_SHA256") ?:
|
||||||
0;
|
0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bitforce_detect()
|
static void bitforce_detect()
|
||||||
@ -124,7 +123,7 @@ static bool bitforce_thread_prepare(struct thr_info *thr)
|
|||||||
int fdDev = BFopen(bitforce->device_path);
|
int fdDev = BFopen(bitforce->device_path);
|
||||||
struct timeval now;
|
struct timeval now;
|
||||||
|
|
||||||
if (unlikely(-1 == fdDev)) {
|
if (unlikely(fdDev == -1)) {
|
||||||
applog(LOG_ERR, "BFL%i: Failed to open %s", bitforce->device_id, bitforce->device_path);
|
applog(LOG_ERR, "BFL%i: Failed to open %s", bitforce->device_id, bitforce->device_path);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user