From 9672e24b65db24b0a9e1a08742bc6d0b91c15422 Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Fri, 21 May 2010 14:19:15 +1200 Subject: [PATCH] Fixed bug preventing chip identification. --- fet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fet.c b/fet.c index 0ff0f01..0907f87 100644 --- a/fet.c +++ b/fet.c @@ -469,7 +469,7 @@ static int identify_old(struct fet_device *dev) if (xfer(dev, C_IDENTIFY, NULL, 0, 2, 70, 0) < 0) return -1; - if (!dev->fet_reply.datalen < 0x26) { + if (dev->fet_reply.datalen < 0x26) { fprintf(stderr, "fet: missing info\n"); return -1; }