Merge branch 'master' into experimental_varlen

* master:
  remove redundant def
  chg:  forgot to readd hitag support :)
  Guard Hitag code
This commit is contained in:
Philippe Teuwen 2019-04-25 20:59:27 +02:00
commit 0fc79824dd
2 changed files with 5 additions and 1 deletions

View file

@ -31,6 +31,7 @@ APP_CFLAGS = $(PLATFORM_DEFS) \
-DWITH_CRC \
-DON_DEVICE \
-DWITH_LF \
-DWITH_HITAG \
-DWITH_ISO15693 \
-DWITH_LEGICRF \
-DWITH_ISO14443b \
@ -42,7 +43,6 @@ APP_CFLAGS = $(PLATFORM_DEFS) \
-fno-strict-aliasing -ffunction-sections -fdata-sections
### IMPORTANT - move the commented variable below this line
# -DWITH_HITAG \
# -DWITH_FPC \
# -DWITH_LCD \
# -DWITH_EMV \

View file

@ -858,7 +858,9 @@ int CmdLFfind(const char *Cmd) {
// The improved noise detection will find Cotag.
if (getSignalProperties()->isnoise) {
#ifdef WITH_HITAG
if (readHitagUid()) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Hitag") " found!"); return 1;}
#endif
if (readCOTAGUid()) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("COTAG ID") " found!"); return 1;}
PrintAndLogEx(FAILED, "\n" _YELLOW_("No data found!") " - Signal looks like noise. Maybe not an LF tag?");
@ -947,7 +949,9 @@ static command_t CommandTable[] = {
{"fdx", CmdLFFdx, 1, "{ FDX-B RFIDs... }"},
{"gproxii", CmdLFGuard, 1, "{ Guardall Prox II RFIDs... }"},
{"hid", CmdLFHID, 1, "{ HID RFIDs... }"},
#ifdef WITH_HITAG
{"hitag", CmdLFHitag, 1, "{ Hitag CHIPs... }"},
#endif
{"indala", CmdLFINDALA, 1, "{ Indala RFIDs... }"},
{"io", CmdLFIO, 1, "{ ioProx RFIDs... }"},
{"jablotron", CmdLFJablotron, 1, "{ Jablotron RFIDs... }"},