mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-27 09:37:15 +08:00
fix alway defaulting to freq even if divisor was applied. Will still have issue when addressing both standard values..
This commit is contained in:
parent
65b9a9fb76
commit
a5b5b2f08a
1 changed files with 9 additions and 1 deletions
|
@ -137,7 +137,15 @@ static int CmdLFTune(const char *Cmd) {
|
|||
PrintAndLogEx(ERR, "freq must be between 47 and 600");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
divisor = LF_FREQ2DIV(freq);
|
||||
|
||||
if (divisor != LF_DIVISOR_125 && freq != 125) {
|
||||
PrintAndLogEx(ERR, "Select either `divisor` or `frequency`");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
||||
if (freq != 125)
|
||||
divisor = LF_FREQ2DIV(freq);
|
||||
|
||||
|
||||
if ((is_bar + is_mix + is_value) > 1) {
|
||||
PrintAndLogEx(ERR, "Select only one output style");
|
||||
|
|
Loading…
Reference in a new issue