Fixed bug preventing chip identification.

This commit is contained in:
Daniel Beer 2010-05-21 14:19:15 +12:00
parent b897d780c1
commit 9672e24b65
1 changed files with 1 additions and 1 deletions

2
fet.c
View File

@ -469,7 +469,7 @@ static int identify_old(struct fet_device *dev)
if (xfer(dev, C_IDENTIFY, NULL, 0, 2, 70, 0) < 0) if (xfer(dev, C_IDENTIFY, NULL, 0, 2, 70, 0) < 0)
return -1; return -1;
if (!dev->fet_reply.datalen < 0x26) { if (dev->fet_reply.datalen < 0x26) {
fprintf(stderr, "fet: missing info\n"); fprintf(stderr, "fet: missing info\n");
return -1; return -1;
} }