1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +00:00

Temporarily revert inprocess parsing in bflsc pending fixes.

This commit is contained in:
Con Kolivas 2013-08-30 20:39:23 +10:00
parent 3f8d56be52
commit 2853a5d9d5
2 changed files with 6 additions and 11 deletions

View File

@ -106,17 +106,12 @@ static bool tolines(struct cgpu_info *bflsc, int dev, char *buf, int *lines, cha
return ok; return ok;
} }
while (tok) {
if (strncasecmp(tok, BFLSC_INPROCESS, BFLSC_INPROCESS_LEN)) {
ok = true; ok = true;
while (tok) {
p_items = realloc(p_items, ++p_lines * sizeof(*p_items)); p_items = realloc(p_items, ++p_lines * sizeof(*p_items));
if (unlikely(!p_items)) if (unlikely(!p_items))
quit(1, "Failed to realloc p_items in tolines"); quit(1, "Failed to realloc p_items in tolines");
p_items[p_lines-1] = strdup(tok); p_items[p_lines-1] = strdup(tok);
} else {
applog(LOG_WARNING, "%s%i: in process response (%s) ignored",
bflsc->drv->name, bflsc->device_id, tok);
}
tok = strtok(NULL, "\n"); tok = strtok(NULL, "\n");
} }

View File

@ -165,7 +165,7 @@ struct QueueJobStructure {
uint8_t endOfBlock; uint8_t endOfBlock;
}; };
#define QUE_RES_LINES_MIN 2 #define QUE_RES_LINES_MIN 3
#define QUE_MIDSTATE 0 #define QUE_MIDSTATE 0
#define QUE_BLOCKDATA 1 #define QUE_BLOCKDATA 1