]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: 'hw tune' - peakf shouldn't be compare with voltages limits :)
authoriceman1001 <iceman@iuse.se>
Wed, 18 Jan 2017 12:35:00 +0000 (13:35 +0100)
committericeman1001 <iceman@iuse.se>
Wed, 18 Jan 2017 12:35:00 +0000 (13:35 +0100)
client/cmddata.c

index c583aa3fbe9f81c92657806e334f6d7e3aa6a50d..0f1d6a7c8a8e8a0958588c641869563e8d50472b 100644 (file)
@@ -2256,7 +2256,7 @@ int CmdTuneSamples(const char *Cmd)
                PrintAndLog("# LF antenna: %5.2f V @   125.00 kHz", vLf125/1000.0);
        if ( vLf134 > NON_VOLTAGE )
                PrintAndLog("# LF antenna: %5.2f V @   134.00 kHz", vLf134/1000.0);
-       if ( peakv > NON_VOLTAGE && peakf > NON_VOLTAGE )
+       if ( peakv > NON_VOLTAGE && peakf > 0 )
                PrintAndLog("# LF optimal: %5.2f V @%9.2f kHz", peakv/1000.0, 12000.0/(peakf+1));
        if ( vHf > NON_VOLTAGE )
                PrintAndLog("# HF antenna: %5.2f V @    13.56 MHz", vHf/1000.0);
Impressum, Datenschutz