mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
CHG: Supressing output for LF or HF antenna values if zero, in 'hw tune' command
This commit is contained in:
parent
5735cfa58e
commit
d801514d88
1 changed files with 8 additions and 4 deletions
|
@ -2146,10 +2146,14 @@ int CmdTuneSamples(const char *Cmd)
|
||||||
peakf = resp.arg[2] & 0xffff;
|
peakf = resp.arg[2] & 0xffff;
|
||||||
peakv = resp.arg[2] >> 16;
|
peakv = resp.arg[2] >> 16;
|
||||||
PrintAndLog("");
|
PrintAndLog("");
|
||||||
PrintAndLog("# LF antenna: %5.2f V @ 125.00 kHz", vLf125/1000.0);
|
if ( vLf125 > 0 )
|
||||||
PrintAndLog("# LF antenna: %5.2f V @ 134.00 kHz", vLf134/1000.0);
|
PrintAndLog("# LF antenna: %5.2f V @ 125.00 kHz", vLf125/1000.0);
|
||||||
PrintAndLog("# LF optimal: %5.2f V @%9.2f kHz", peakv/1000.0, 12000.0/(peakf+1));
|
if ( vLf134 > 0 )
|
||||||
PrintAndLog("# HF antenna: %5.2f V @ 13.56 MHz", vHf/1000.0);
|
PrintAndLog("# LF antenna: %5.2f V @ 134.00 kHz", vLf134/1000.0);
|
||||||
|
if ( peakv > 0 && peakf > 0 )
|
||||||
|
PrintAndLog("# LF optimal: %5.2f V @%9.2f kHz", peakv/1000.0, 12000.0/(peakf+1));
|
||||||
|
if ( vHf > 0 )
|
||||||
|
PrintAndLog("# HF antenna: %5.2f V @ 13.56 MHz", vHf/1000.0);
|
||||||
|
|
||||||
#define LF_UNUSABLE_V 2948 // was 2000. Changed due to bugfix in voltage measurements. LF results are now 47% higher.
|
#define LF_UNUSABLE_V 2948 // was 2000. Changed due to bugfix in voltage measurements. LF results are now 47% higher.
|
||||||
#define LF_MARGINAL_V 14739 // was 10000. Changed due to bugfix bug in voltage measurements. LF results are now 47% higher.
|
#define LF_MARGINAL_V 14739 // was 10000. Changed due to bugfix bug in voltage measurements. LF results are now 47% higher.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue