mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-28 23:44:30 +00:00
BFLSC fix FPGA identity overlap
This commit is contained in:
parent
a84e424b73
commit
179cc524f5
@ -204,7 +204,7 @@ struct SaveString {
|
|||||||
|
|
||||||
// Replies
|
// Replies
|
||||||
#define BFLSC_IDENTITY "BitFORCE SC"
|
#define BFLSC_IDENTITY "BitFORCE SC"
|
||||||
#define BFLSC_BFLFPGA "SHA256"
|
#define BFLSC_BFLSC "SHA256 SC"
|
||||||
|
|
||||||
#define BFLSC_OK "OK\n"
|
#define BFLSC_OK "OK\n"
|
||||||
#define BFLSC_OK_LEN (sizeof(BFLSC_OK)-1)
|
#define BFLSC_OK_LEN (sizeof(BFLSC_OK)-1)
|
||||||
@ -741,13 +741,13 @@ reinit:
|
|||||||
}
|
}
|
||||||
buf[amount] = '\0';
|
buf[amount] = '\0';
|
||||||
|
|
||||||
if (unlikely(strstr(buf, BFLSC_BFLFPGA))) {
|
if (unlikely(!strstr(buf, BFLSC_BFLSC))) {
|
||||||
applog(LOG_DEBUG, "%s detect (%s) found an FPGA '%s' ignoring",
|
applog(LOG_DEBUG, "%s detect (%s) found an FPGA '%s' ignoring",
|
||||||
bflsc->drv->dname, devpath, buf);
|
bflsc->drv->dname, devpath, buf);
|
||||||
goto unshin;
|
goto unshin;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unlikely(!strstr(buf, BFLSC_IDENTITY))) {
|
if (unlikely(strstr(buf, BFLSC_IDENTITY))) {
|
||||||
if (ident_first) {
|
if (ident_first) {
|
||||||
applog(LOG_DEBUG, "%s detect (%s) didn't recognise '%s' trying again ...",
|
applog(LOG_DEBUG, "%s detect (%s) didn't recognise '%s' trying again ...",
|
||||||
bflsc->drv->dname, devpath, buf);
|
bflsc->drv->dname, devpath, buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user