Not writing to file, in flash_raw mode
authorVladimir Yakovlev <nagos@inbox.ru>
Wed, 19 Jan 2011 07:31:41 +0000 (10:31 +0300)
committerThomas 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

index ad8eb8d..3977f86 100644 (file)
@@ -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)