mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 18:57:12 +08:00
CHG: Syntax suger
This commit is contained in:
parent
639a571810
commit
9974991e4b
1 changed files with 4 additions and 4 deletions
|
@ -40,11 +40,11 @@ void printConfig()
|
||||||
void setSamplingConfig(sample_config *sc)
|
void setSamplingConfig(sample_config *sc)
|
||||||
{
|
{
|
||||||
if(sc->divisor != 0) config.divisor = sc->divisor;
|
if(sc->divisor != 0) config.divisor = sc->divisor;
|
||||||
if(sc->bits_per_sample!= 0) config.bits_per_sample= sc->bits_per_sample;
|
if(sc->bits_per_sample != 0) config.bits_per_sample = sc->bits_per_sample;
|
||||||
if(sc->decimation!= 0) config.decimation= sc->decimation;
|
if(sc->decimation != 0) config.decimation = sc->decimation;
|
||||||
if(sc->trigger_threshold != -1) config.trigger_threshold= sc->trigger_threshold;
|
if(sc->trigger_threshold != -1) config.trigger_threshold = sc->trigger_threshold;
|
||||||
|
|
||||||
config.averaging= sc->averaging;
|
config.averaging = sc->averaging;
|
||||||
if(config.bits_per_sample > 8) config.bits_per_sample = 8;
|
if(config.bits_per_sample > 8) config.bits_per_sample = 8;
|
||||||
if(config.decimation < 1) config.decimation = 1;
|
if(config.decimation < 1) config.decimation = 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue