mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-12 22:21:56 +00:00
Handle failed tolines command in bflsc driver.
This commit is contained in:
parent
6db9745287
commit
21fd80dfa4
@ -606,6 +606,9 @@ static bool getinfo(struct cgpu_info *bflsc, int dev)
|
|||||||
memset(&sc_dev, 0, sizeof(struct bflsc_dev));
|
memset(&sc_dev, 0, sizeof(struct bflsc_dev));
|
||||||
sc_info->sc_count = 1;
|
sc_info->sc_count = 1;
|
||||||
res = tolines(bflsc, dev, &(buf[0]), &lines, &items, C_GETDETAILS);
|
res = tolines(bflsc, dev, &(buf[0]), &lines, &items, C_GETDETAILS);
|
||||||
|
if (!res)
|
||||||
|
return false;
|
||||||
|
|
||||||
for (i = 0; i < lines-2; i++) {
|
for (i = 0; i < lines-2; i++) {
|
||||||
res = breakdown(ONECOLON, items[i], &count, &firstname, &fields, &lf);
|
res = breakdown(ONECOLON, items[i], &count, &firstname, &fields, &lf);
|
||||||
if (lf)
|
if (lf)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user