]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlf.c
FIX: `hf mf sim` - authentication works again.
[proxmark3-svn] / client / cmdlf.c
index ba7d9cc8412f9ad58c78d01fd52a6d2fbdcfda9f..b3debf1c791dbb78cdbc12d72abd6beb2af811de 100644 (file)
@@ -544,8 +544,9 @@ int CmdLFSetConfig(const char *Cmd) {
 }
 
 int CmdLFRead(const char *Cmd) {
-       bool arg1 = false;
-       bool thresholdRead = false;     
+       bool errors = FALSE;
+       bool arg1 = FALSE;
+       bool thresholdRead = FALSE;     
        uint8_t cmdp = 0;
        while(param_getchar(Cmd, cmdp) != 0x00) {
                switch(param_getchar(Cmd, cmdp)) {
@@ -554,12 +555,12 @@ int CmdLFRead(const char *Cmd) {
                        return usage_lf_read();
                case 's':
                case 'S':
-                       arg1 = true;
+                       arg1 = TRUE;
                        cmdp++;
                        break;
                case 't':
                case 'T':
-                       thresholdRead = true;
+                       thresholdRead = TRUE;
                        cmdp++;
                        break;
                default:
@@ -1225,13 +1226,12 @@ int CmdLFfind(const char *Cmd) {
        return 0;
 }
 
-static command_t CommandTable[] = 
-{
+static command_t CommandTable[] = {
        {"help",        CmdHelp,            1, "This help"},
        {"animal",      CmdLFFdx,           1, "{ Animal RFIDs... }"},
        {"awid",        CmdLFAWID,          1, "{ AWID RFIDs... }"},
        {"cotag",       CmdLFCOTAG,         1, "{ COTAG RFIDs... }"},
-       {"em4x",        CmdLFEM4X,          1, "{ EM4X RFIDs... }"},
+       {"em",          CmdLFEM4X,          1, "{ EM4X RFIDs... }"},
        {"guard",       CmdLFGuard,         1, "{ Guardall RFIDs... }"},
        {"hid",         CmdLFHID,           1, "{ HID RFIDs... }"},
        {"hitag",       CmdLFHitag,         1, "{ HITAG RFIDs... }"},
Impressum, Datenschutz