From 7285f1158d77dd42d9643419f5cfc1bc3fdeeeea Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 12 Sep 2026 12:38:05 +0200 Subject: [PATCH] cleaner return value --- client/src/cmdhffelica.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/cmdhffelica.c b/client/src/cmdhffelica.c index a19b6f2ea..686968bf5 100644 --- a/client/src/cmdhffelica.c +++ b/client/src/cmdhffelica.c @@ -7156,7 +7156,8 @@ static int CmdHFFelicaDump(const char *Cmd) { if (res != PM3_SUCCESS || discovered_systems.count == 0) { DropField(); PrintAndLogEx(FAILED, "Unable to discover FeliCa systems."); - return res; + // discovery can succeed and still find nothing, res is PM3_SUCCESS then + return (res != PM3_SUCCESS) ? res : PM3_ESOFT; } PrintAndLogEx(INFO, "Discovered " _GREEN_("%u") " system(s).", (unsigned int)discovered_systems.count);