X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/8a13121435ca6534053c8f533d12ca7a345aab43..2c5ed706511e60aacc291bc4c47d0efe1892596c:/client/cmdlft55xx.c diff --git a/client/cmdlft55xx.c b/client/cmdlft55xx.c index 44c511fb..aec47dc0 100644 --- a/client/cmdlft55xx.c +++ b/client/cmdlft55xx.c @@ -320,14 +320,14 @@ bool tryDetectModulation(){ ++hits; } - if ( PSKDemod("0 0 1", FALSE) && test()) { + if ( PSKDemod("0 0 1", FALSE) >= 0 && test()) { tests[hits].modulation = DEMOD_PSK; tests[hits].inversed = FALSE; ++hits; } - if ( PSKDemod("0 1 1", FALSE) && test()) { - tests[++hits].modulation = DEMOD_PSK; + if ( PSKDemod("0 1 1", FALSE) >= 0 && test()) { + tests[hits].modulation = DEMOD_PSK; tests[hits].inversed = TRUE; ++hits; } @@ -351,6 +351,7 @@ bool tryDetectModulation(){ if ( hits > 1) { PrintAndLog("Found [%d] possible matches for modulation.",hits); for(int i=0; i