diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d10c75f6..39ce29b0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] + - Fixed `lf config --reset` - averaging is set to 1 rather than 0 (@wh201906) - Added standalone mode for sniffing 14b (@jacopo-j) - Fixed `hf 14a apdu` - now don't skip first P2 iteration (@iceman1001) - Added `hf ntag424` - skeleton with SDM (@iceman1001) diff --git a/client/src/cmdlf.c b/client/src/cmdlf.c index e18dd15b7..a2d7e2450 100644 --- a/client/src/cmdlf.c +++ b/client/src/cmdlf.c @@ -631,7 +631,9 @@ int CmdLFConfig(const char *Cmd) { if (use_134) config.divisor = LF_DIVISOR_134; - config.averaging = (avg == 1); + // check if the config.averaging is not set by if(reset){...} + if (config.averaging == -1) + config.averaging = (avg == 1); if (bps > -1) { // bps is limited to 8