]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
fix silent option for getSamples
authormarshmellow42 <marshmellowrf@gmail.com>
Fri, 7 Apr 2017 22:10:01 +0000 (18:10 -0400)
committermarshmellow42 <marshmellowrf@gmail.com>
Fri, 7 Apr 2017 22:10:01 +0000 (18:10 -0400)
client/cmddata.c

index 8f2aea5aa75c068fe9d4675f56434333f71e2f24..2f508efcc5744fb6da8f1c3f1c91ed95742ebf7f 100644 (file)
@@ -1161,7 +1161,7 @@ int getSamples(int n, bool silent)
        if(response.arg[0] > 0)
        {
                sample_config *sc = (sample_config *) response.d.asBytes;
        if(response.arg[0] > 0)
        {
                sample_config *sc = (sample_config *) response.d.asBytes;
-               PrintAndLog("Samples @ %d bits/smpl, decimation 1:%d ", sc->bits_per_sample
+               if (!silent) PrintAndLog("Samples @ %d bits/smpl, decimation 1:%d ", sc->bits_per_sample
                    , sc->decimation);
                bits_per_sample = sc->bits_per_sample;
        }
                    , sc->decimation);
                bits_per_sample = sc->bits_per_sample;
        }
Impressum, Datenschutz