From b4e0701f27b823206318dfb8ae4e6c5bb5d30b99 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 12 Jan 2020 17:13:02 +0100 Subject: [PATCH] Chg: 'hf plow' - remove signal offset --- client/cmdhf.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/cmdhf.c b/client/cmdhf.c index 347e4de46..05d52af5e 100644 --- a/client/cmdhf.c +++ b/client/cmdhf.c @@ -18,6 +18,7 @@ #include "cmdparser.h" // command_t #include "cliparser/cliparser.h" // parse #include "comms.h" // clearCommandBuffer +#include "lfdemod.h" // computeSignalProperties #include "cmdhf14a.h" // ISO14443-A #include "cmdhf14b.h" // ISO14443-B #include "cmdhf15.h" // ISO15693 @@ -248,11 +249,18 @@ int CmdHFPlot(const char *Cmd) { } for (size_t i = 0; i < FPGA_TRACE_SIZE; i++) { - GraphBuffer[i] = (int)buf[i] - 128; + GraphBuffer[i] = ((int)buf[i]) - 127; } GraphTraceLen = FPGA_TRACE_SIZE; + ShowGraphWindow(); + + // remove signal offset + CmdHpf(""); + + setClockGrid(0, 0); + DemodBufferLen = 0; RepaintGraphWindow(); return PM3_SUCCESS; }