git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
87f66e3
)
Get the test on TYPE_R for unexpected In-Endpoint sizes right
author
Uwe Bonnes
<bon@elektron.ikp.physik.tu-darmstadt.de>
Fri, 10 Sep 2010 13:27:25 +0000 (15:27 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 20 Sep 2010 13:34:41 +0000 (15:34 +0200)
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
a80fb49
..
a461e19
100644
(file)
--- 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");