From 6a933555dfa93966c46c77adb81ba7e3a2c3aa69 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 5 Mar 2024 14:55:30 +0100 Subject: [PATCH] mem spiffs dump now honors the -d filename and save to file when used together with the `-t` param --- CHANGELOG.md | 1 + client/src/cmdflashmemspiffs.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ab9226bd..1e0cdddd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] + - Changed `mem spiffs dump` - now if `-t` and `-d` it will also save to file (@iceman1001) - Fixed `hf mf sim` - key type identification (@iceman1001) - Added `lf em 4x70 recover` - recovery the second half of an id48 key (@henrygab) - Changed `hf emrtd info` - Added EG_DG7 viewing (@iceman1001) diff --git a/client/src/cmdflashmemspiffs.c b/client/src/cmdflashmemspiffs.c index 2f5c94324..5c3c4918c 100644 --- a/client/src/cmdflashmemspiffs.c +++ b/client/src/cmdflashmemspiffs.c @@ -427,8 +427,9 @@ static int CmdFlashMemSpiFFSDump(const char *Cmd) { return PM3_EMALLOC; } PrintAndLogEx(HINT, "Use 'trace list -1 -t ...' to view, 'trace save -f ...' to save"); - } else { + } + if (dlen) { // save to file char fn[FILE_PATH_SIZE] = {0}; if (dlen) {