From a844afc273288d902c7cfba08c3fe6cfdb6f035f Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 25 Apr 2019 20:42:41 +0200 Subject: [PATCH 1/3] Guard Hitag code --- client/cmdlf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/cmdlf.c b/client/cmdlf.c index 3243d60af..3e2311203 100644 --- a/client/cmdlf.c +++ b/client/cmdlf.c @@ -883,7 +883,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?"); @@ -972,7 +974,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... }"}, From a6278ff8cdb98788464a17505a8ca1fc567e4be4 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 25 Apr 2019 20:51:20 +0200 Subject: [PATCH 2/3] chg: forgot to readd hitag support :) --- armsrc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/armsrc/Makefile b/armsrc/Makefile index 42965767b..a5d0b1403 100644 --- a/armsrc/Makefile +++ b/armsrc/Makefile @@ -31,6 +31,7 @@ APP_CFLAGS = $(PLATFORM_DEFS) \ -DWITH_CRC \ -DON_DEVICE \ -DWITH_LF \ + -DWITH_HITAG \ -DWITH_ISO15693 \ -DWITH_LEGICRF \ -DWITH_ISO14443b \ From 27e94f5669af12bf82873ead7e52794957163b71 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 25 Apr 2019 20:59:11 +0200 Subject: [PATCH 3/3] remove redundant def --- armsrc/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/armsrc/Makefile b/armsrc/Makefile index a5d0b1403..fa54d4451 100644 --- a/armsrc/Makefile +++ b/armsrc/Makefile @@ -43,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 \