From: Uwe Bonnes Date: Wed, 15 Sep 2010 14:19:53 +0000 (+0200) Subject: Decoded max_power is in mA and 90 mA for TYPE_R and 100mA else X-Git-Tag: v1.0rc1~133^2~57 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=a886436ae0a98e39376383b176f05382009290e7 Decoded max_power is in mA and 90 mA for TYPE_R and 100mA else --- diff --git a/src/ftdi.c b/src/ftdi.c index aa85278..61b7a75 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2214,7 +2214,7 @@ int ftdi_eeprom_initdefaults(struct ftdi_context *ftdi, char * manufacturer, eeprom->usb_version = 0x0101; else eeprom->usb_version = 0x0200; - eeprom->max_power = 50; + eeprom->max_power = 100; if (eeprom->manufacturer) free (eeprom->manufacturer); @@ -2248,7 +2248,7 @@ int ftdi_eeprom_initdefaults(struct ftdi_context *ftdi, char * manufacturer, if(ftdi->type == TYPE_R) { - eeprom->max_power = 45; + eeprom->max_power = 90; eeprom->size = 0x80; eeprom->cbus_function[0] = CBUS_TXLED; eeprom->cbus_function[1] = CBUS_RXLED;