mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 18:24:27 +08:00
Fix hf emrtd info when offline
This commit is contained in:
parent
fbc60ccbbb
commit
5a44172a35
1 changed files with 4 additions and 0 deletions
|
@ -2317,6 +2317,10 @@ static int CmdHFeMRTDInfo(const char *Cmd) {
|
|||
uint8_t path[FILENAME_MAX] = { 0x00 };
|
||||
bool is_offline = CLIParamStrToBuf(arg_get_str(ctx, 5), path, sizeof(path), &slen) == 0 && slen > 0;
|
||||
CLIParserFree(ctx);
|
||||
if ((! IfPm3Iso14443()) && (! is_offline)) {
|
||||
PrintAndLogEx(WARNING, "Only offline mode is available");
|
||||
error = true;
|
||||
}
|
||||
if (error) {
|
||||
return PM3_ESOFT;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue