cleaner return value

This commit is contained in:
iceman1001 committed 2026-09-12 12:38:05 +02:00
1 parent 47507a1d21
commit 7285f1158d
1 file changed
+2 -1
+2 -1
View File
@@ -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);