]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: minor output change, when printing found multiple modulations
authoriceman1001 <iceman@iuse.se>
Fri, 13 Mar 2015 20:24:37 +0000 (21:24 +0100)
committericeman1001 <iceman@iuse.se>
Fri, 13 Mar 2015 20:24:37 +0000 (21:24 +0100)
CHG: PSKDemod should be called like this according @Marshmellow

client/cmdlft55xx.c

index 44c511fb32871202d979d92bec1dac68f1719d4e..aec47dc0accc7d9ba66beb16fc81d657f7badbbc 100644 (file)
@@ -320,14 +320,14 @@ bool tryDetectModulation(){
                        ++hits;\r
                        }\r
                \r
-               if ( PSKDemod("0 0 1", FALSE)  && test()) {\r
+               if ( PSKDemod("0 0 1", FALSE) >= 0 && test()) {\r
                        tests[hits].modulation = DEMOD_PSK;\r
                        tests[hits].inversed = FALSE;\r
                        ++hits;\r
                }\r
                \r
-               if ( PSKDemod("0 1 1", FALSE) && test()) {\r
-                       tests[++hits].modulation = DEMOD_PSK;\r
+               if ( PSKDemod("0 1 1", FALSE) >= 0 && test()) {\r
+                       tests[hits].modulation = DEMOD_PSK;\r
                        tests[hits].inversed = TRUE;\r
                        ++hits;\r
                }\r
@@ -351,6 +351,7 @@ bool tryDetectModulation(){
        if ( hits > 1) {\r
                PrintAndLog("Found [%d] possible matches for modulation.",hits);\r
                for(int i=0; i<hits; ++i){\r
+                       PrintAndLog("--[%d]---------------", i+1);\r
                        printConfiguration( tests[i] );\r
                }\r
        }\r
Impressum, Datenschutz