git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
89e7cfb
)
Not writing to file, in flash_raw mode
author
Vladimir Yakovlev
<nagos@inbox.ru>
Wed, 19 Jan 2011 07:31:41 +0000 (10:31 +0300)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Wed, 19 Jan 2011 15:46:53 +0000 (16:46 +0100)
Don't write eeprom file if flash_raw is set
ftdi_eeprom/main.c
patch
|
blob
|
blame
|
history
diff --git
a/ftdi_eeprom/main.c
b/ftdi_eeprom/main.c
index
ad8eb8d
..
3977f86
100644
(file)
--- a/
ftdi_eeprom/main.c
+++ b/
ftdi_eeprom/main.c
@@
-362,7
+362,7
@@
int main(int argc, char *argv[])
}
// Write to file?
- if (filename != NULL && strlen(filename) > 0)
+ if (filename != NULL && strlen(filename) > 0 && !cfg_getbool(cfg, "flash_raw"))
{
fp = fopen(filename, "w");
if (fp == NULL)