From 53c7c901d93038e5357caf52d460a65b3148e4bf Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Fri, 10 Sep 2010 14:06:28 +0200 Subject: [PATCH] Temporary remove CBUS settings --- src/ftdi.c | 13 ------------- 1 files changed, 0 insertions(+), 13 deletions(-) diff --git a/src/ftdi.c b/src/ftdi.c index 199f3a2..e83676d 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2269,7 +2269,6 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi, unsigned char *output) unsigned short checksum, value; unsigned char manufacturer_size = 0, product_size = 0, serial_size = 0; int size_check; - const int cbus_max[5] = {13, 13, 13, 13, 9}; struct ftdi_eeprom *eeprom; if (ftdi == NULL) @@ -2289,18 +2288,6 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi, unsigned char *output) if (eeprom->serial != NULL) serial_size = strlen(eeprom->serial); - // highest allowed cbus value - for (i = 0; i < 5; i++) - { - if ((eeprom->cbus_function[i] > cbus_max[i]) || - (eeprom->cbus_function[i] && ftdi->type != TYPE_R)) return -3; - } - if (ftdi->type != TYPE_R) - { - if (eeprom->invert) return -4; - if (eeprom->high_current_a) return -5; - } - size_check = 0x80; switch(ftdi->type) { -- 1.7.1