From: Uwe Bonnes Date: Fri, 10 Sep 2010 12:06:28 +0000 (+0200) Subject: Temporary remove CBUS settings X-Git-Tag: v1.0rc1~133^2~88 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=53c7c901d93038e5357caf52d460a65b3148e4bf Temporary remove CBUS settings --- 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) {