From a886436ae0a98e39376383b176f05382009290e7 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Wed, 15 Sep 2010 16:19:53 +0200 Subject: [PATCH] Decoded max_power is in mA and 90 mA for TYPE_R and 100mA else --- src/ftdi.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.1