mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
CHG: minor output change, when printing found multiple modulations
CHG: PSKDemod should be called like this according @Marshmellow
This commit is contained in:
parent
8a13121435
commit
2c5ed70651
1 changed files with 4 additions and 3 deletions
|
@ -320,14 +320,14 @@ bool tryDetectModulation(){
|
||||||
++hits;
|
++hits;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( PSKDemod("0 0 1", FALSE) && test()) {
|
if ( PSKDemod("0 0 1", FALSE) >= 0 && test()) {
|
||||||
tests[hits].modulation = DEMOD_PSK;
|
tests[hits].modulation = DEMOD_PSK;
|
||||||
tests[hits].inversed = FALSE;
|
tests[hits].inversed = FALSE;
|
||||||
++hits;
|
++hits;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( PSKDemod("0 1 1", FALSE) && test()) {
|
if ( PSKDemod("0 1 1", FALSE) >= 0 && test()) {
|
||||||
tests[++hits].modulation = DEMOD_PSK;
|
tests[hits].modulation = DEMOD_PSK;
|
||||||
tests[hits].inversed = TRUE;
|
tests[hits].inversed = TRUE;
|
||||||
++hits;
|
++hits;
|
||||||
}
|
}
|
||||||
|
@ -351,6 +351,7 @@ bool tryDetectModulation(){
|
||||||
if ( hits > 1) {
|
if ( hits > 1) {
|
||||||
PrintAndLog("Found [%d] possible matches for modulation.",hits);
|
PrintAndLog("Found [%d] possible matches for modulation.",hits);
|
||||||
for(int i=0; i<hits; ++i){
|
for(int i=0; i<hits; ++i){
|
||||||
|
PrintAndLog("--[%d]---------------", i+1);
|
||||||
printConfiguration( tests[i] );
|
printConfiguration( tests[i] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue