git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7e76a5e
)
max_power in mA is EEPROM[0x09]*2
author
Uwe Bonnes
<bon@elektron.ikp.physik.tu-darmstadt.de>
Fri, 10 Sep 2010 09:32:47 +0000 (11:32 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 20 Sep 2010 13:34:40 +0000 (15:34 +0200)
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
62f7242
..
c263225
100644
(file)
--- a/
src/ftdi.c
+++ b/
src/ftdi.c
@@
-2702,7
+2702,7
@@
int ftdi_eeprom_decode(struct ftdi_context *ftdi, unsigned char *buf, int size,
if(eeprom->self_powered)
fprintf(stdout, "Self-Powered%s", (eeprom->remote_wakeup)?", USB Remote Wake Up\n":"\n");
else
- fprintf(stdout, "Bus Powered: %3d mA%s", eeprom->max_power*2,
+ fprintf(stdout, "Bus Powered: %3d mA%s", eeprom->max_power * 2,
(eeprom->remote_wakeup)?" USB Remote Wake Up\n":"\n");
if(eeprom->manufacturer)
fprintf(stdout, "Manufacturer: %s\n",eeprom->manufacturer);