split nfcbarcode from iso14443a

This commit is contained in:
Philippe Teuwen
2019-08-03 21:17:52 +02:00
parent ada1b8559b
commit 4a3fb3ccf1
7 changed files with 25 additions and 5 deletions

View File

@@ -213,9 +213,9 @@ static int CmdHfThinFilmList(const char *Cmd) {
static command_t CommandTable[] = {
{"help", CmdHelp, AlwaysAvailable, "This help"},
{"info", CmdHfThinFilmInfo, IfPm3Flash, "Tag information"},
{"list", CmdHfThinFilmList, AlwaysAvailable, "List ISO 14443A / Thinfilm history - not correct"},
{"sim", CmdHfThinFilmSim, IfPm3Flash, "Fake Thinfilm tag"},
{"info", CmdHfThinFilmInfo, IfPm3NfcBarcode, "Tag information"},
{"list", CmdHfThinFilmList, AlwaysAvailable, "List NFC Barcode / Thinfilm history - not correct"},
{"sim", CmdHfThinFilmSim, IfPm3NfcBarcode, "Fake Thinfilm tag"},
{NULL, NULL, NULL, NULL}
};

View File

@@ -133,6 +133,12 @@ bool IfPm3Iclass(void) {
return pm3_capabilities.compiled_with_iclass;
}
bool IfPm3NfcBarcode(void) {
if (!IfPm3Present())
return false;
return pm3_capabilities.compiled_with_nfcbarcode;
}
bool IfPm3Lcd(void) {
if (!IfPm3Present())
return false;

View File

@@ -38,6 +38,7 @@ bool IfPm3Iso15693(void);
bool IfPm3Felica(void);
bool IfPm3Legicrf(void);
bool IfPm3Iclass(void);
bool IfPm3NfcBarcode(void);
bool IfPm3Lcd(void);
// Print help for each command in the command array