From a844afc273288d902c7cfba08c3fe6cfdb6f035f Mon Sep 17 00:00:00 2001
From: Philippe Teuwen <phil@teuwen.org>
Date: Thu, 25 Apr 2019 20:42:41 +0200
Subject: [PATCH] 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...         }"},