mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-19 19:38:52 +08:00
Fix a bug in "lf config"
When executing "lf config --reset", the averaging will be 0 rather than 1(default). This is because the config.averaging is set to 1 at first.(line 621) Then this argument is overwritten unconditionally by "config.averaging = (avg == 1);"(line 634)
This commit is contained in:
parent
aec3ff64e2
commit
4a8f425379
1 changed files with 3 additions and 1 deletions
|
@ -631,6 +631,8 @@ int CmdLFConfig(const char *Cmd) {
|
||||||
if (use_134)
|
if (use_134)
|
||||||
config.divisor = LF_DIVISOR_134;
|
config.divisor = LF_DIVISOR_134;
|
||||||
|
|
||||||
|
// check if the config.averaging is not set by if(reset){...}
|
||||||
|
if (config.averaging == -1)
|
||||||
config.averaging = (avg == 1);
|
config.averaging = (avg == 1);
|
||||||
|
|
||||||
if (bps > -1) {
|
if (bps > -1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue