]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: syntax suger
authoriceman1001 <iceman@iuse.se>
Wed, 10 Feb 2016 12:12:01 +0000 (13:12 +0100)
committericeman1001 <iceman@iuse.se>
Wed, 10 Feb 2016 12:12:01 +0000 (13:12 +0100)
client/cmdhfmf.c

index d354952b10d8a2ab8d227c7f9b4ed92b4bb4dbe9..c54a0592839854ddb85531063a8a948e6ef44a92 100644 (file)
@@ -65,11 +65,6 @@ start:
                UsbCommand resp;\r
                if (WaitForResponseTimeout(CMD_ACK, &resp, 1500)) {\r
                        isOK  = resp.arg[0];\r
-                       uid = (uint32_t)bytes_to_num(resp.d.asBytes +  0, 4);\r
-                       nt =  (uint32_t)bytes_to_num(resp.d.asBytes +  4, 4);\r
-                       par_list = bytes_to_num(resp.d.asBytes +  8, 8);\r
-                       ks_list = bytes_to_num(resp.d.asBytes +  16, 8);\r
-                       nr = bytes_to_num(resp.d.asBytes + 24, 4);\r
                        printf("\n\n");\r
                        switch (isOK) {\r
                                case -1 : PrintAndLog("Button pressed. Aborted.\n"); break;\r
@@ -79,6 +74,11 @@ start:
                                                  PrintAndLog("generating polynomial with 16 effective bits only, but shows unexpected behaviour.\n"); break;\r
                                default: ;\r
                        }\r
+                       uid = (uint32_t)bytes_to_num(resp.d.asBytes +  0, 4);\r
+                       nt =  (uint32_t)bytes_to_num(resp.d.asBytes +  4, 4);\r
+                       par_list = bytes_to_num(resp.d.asBytes +  8, 8);\r
+                       ks_list = bytes_to_num(resp.d.asBytes +  16, 8);\r
+                       nr = bytes_to_num(resp.d.asBytes + 24, 4);\r
                        break;\r
                }\r
        }       \r
Impressum, Datenschutz