CHG: PSKDemod should be called like this according @Marshmellow
- 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
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
tests[hits].inversed = TRUE;\r
++hits;\r
}\r
if ( hits > 1) {\r
PrintAndLog("Found [%d] possible matches for modulation.",hits);\r
for(int i=0; i<hits; ++i){\r
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
printConfiguration( tests[i] );\r
}\r
}\r