From 71ba2c2cc274bbe898f4a00b0cd175439ea6609f Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Fri, 10 Sep 2010 15:27:25 +0200 Subject: [PATCH] Get the test on TYPE_R for unexpected In-Endpoint sizes right --- src/ftdi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ftdi.c b/src/ftdi.c index a80fb49..a461e19 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2524,7 +2524,7 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, unsigned char *buf, int size, eeprom->suspend_dbus7 = buf[0x01] & SUSPEND_DBUS7; - if((ftdi->type == TYPE_R) && (buf[0x01]&0x40)) + if((ftdi->type == TYPE_R) && ((buf[0x01]&0x40) != 0x40)) fprintf(stderr, "TYPE_R EEPROM byte[0x01] Bit 6 unexpected Endpoint size. If this happened with the\n" " EEPROM programmed by FTDI tools, please report to libftdi@developer.intra2net.com\n"); -- 1.7.1