Merge pull request #1459 from AxisRay/fix-filename-problem
fix naming convertion messes up
This commit is contained in:
2 files changed
+13
-7
No files matched your search
@@ -383,7 +383,13 @@ static int CmdFlashMemSpiFFSDump(const char *Cmd) {
|
||||
strncpy(fn, dest, dlen);
|
||||
}
|
||||
|
||||
saveFile(fn, ".bin", dump, len);
|
||||
// set file extension
|
||||
char *suffix = strchr(fn, '.');
|
||||
if (suffix)
|
||||
saveFile(fn, suffix, dump, len);
|
||||
else
|
||||
saveFile(fn, ".bin", dump, len); // default
|
||||
|
||||
if (eml) {
|
||||
uint8_t eml_len = 16;
|
||||
if (strstr(fn, "class") != NULL)
|
||||
|
||||
Reference in new issue
Block a user