mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
fix lf search - false positive motorola
This commit is contained in:
parent
03f709f27f
commit
480241645d
1 changed files with 4 additions and 2 deletions
|
@ -33,6 +33,7 @@ int demodMotorola(bool verbose) {
|
||||||
PrintAndLogEx(DEBUG, "DEBUG: Error - Motorola: PSK Demod failed");
|
PrintAndLogEx(DEBUG, "DEBUG: Error - Motorola: PSK Demod failed");
|
||||||
return PM3_ESOFT;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t size = DemodBufferLen;
|
size_t size = DemodBufferLen;
|
||||||
int ans = detectMotorola(DemodBuffer, &size);
|
int ans = detectMotorola(DemodBuffer, &size);
|
||||||
if (ans < 0) {
|
if (ans < 0) {
|
||||||
|
@ -165,10 +166,11 @@ static int CmdMotorolaReader(const char *Cmd) {
|
||||||
};
|
};
|
||||||
lf_config(&sc);
|
lf_config(&sc);
|
||||||
|
|
||||||
|
int res;
|
||||||
do {
|
do {
|
||||||
// 64 * 32 * 2 * n-ish
|
// 64 * 32 * 2 * n-ish
|
||||||
lf_read(false, 5000);
|
lf_read(false, 5000);
|
||||||
demodMotorola(!cm);
|
res = demodMotorola(!cm);
|
||||||
} while (cm && !kbd_enter_pressed());
|
} while (cm && !kbd_enter_pressed());
|
||||||
|
|
||||||
// reset back to 125 kHz
|
// reset back to 125 kHz
|
||||||
|
@ -176,7 +178,7 @@ static int CmdMotorolaReader(const char *Cmd) {
|
||||||
sc.samples_to_skip = 0;
|
sc.samples_to_skip = 0;
|
||||||
lf_config(&sc);
|
lf_config(&sc);
|
||||||
|
|
||||||
return PM3_SUCCESS;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CmdMotorolaClone(const char *Cmd) {
|
static int CmdMotorolaClone(const char *Cmd) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue