]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhfmfdes.c
ADD: first try to implement crc-16 for Legic Advant *not working yet* Can't verify it.
[proxmark3-svn] / client / cmdhfmfdes.c
index b8db1cab960950e04dae389edb5cc9a9e6a508ac..9ab5a4af21cefa99a2e1e3eba4fab44ac081e410 100644 (file)
@@ -352,7 +352,7 @@ void GetKeySettings( uint8_t *aid){
                        PrintAndLog("   Can't read Application Master key settings");
                } else {
                        // Access rights.
                        PrintAndLog("   Can't read Application Master key settings");
                } else {
                        // Access rights.
-                       uint8_t rights = (resp.d.asBytes[3] >> 4 && 0xff);
+                       uint8_t rights = (resp.d.asBytes[3] >> 4 & 0xff);
                        switch (rights){
                                case 0x00:
                                        str = "AMK authentication is necessary to change any key (default)";
                        switch (rights){
                                case 0x00:
                                        str = "AMK authentication is necessary to change any key (default)";
Impressum, Datenschutz