diff --git a/armsrc/Makefile b/armsrc/Makefile index c4531d0f3..dbb807da9 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 \ @@ -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 \ diff --git a/client/cmdlf.c b/client/cmdlf.c index adc1a8a63..bafa7353b 100644 --- a/client/cmdlf.c +++ b/client/cmdlf.c @@ -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... }"},