From: iceman1001 Date: Wed, 18 Jan 2017 12:35:00 +0000 (+0100) Subject: FIX: 'hw tune' - peakf shouldn't be compare with voltages limits :) X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/efbf81da52dad2507cca6062d44272c397f93e4a?ds=inline FIX: 'hw tune' - peakf shouldn't be compare with voltages limits :) --- diff --git a/client/cmddata.c b/client/cmddata.c index c583aa3f..0f1d6a7c 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -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);