]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlft55xx.c
CHG: minor output change, when printing found multiple modulations
[proxmark3-svn] / 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