From ef2fc5b66c37cbc6661cfdbb1f58d2346be5ace9 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 1 Mar 2019 12:09:35 +0100 Subject: [PATCH] fix: 'hw tune' - reset demodplot line and grid clock --- client/cmddata.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/cmddata.c b/client/cmddata.c index 7e037c2e6..ba3d61156 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -1495,6 +1495,13 @@ int CmdTuneSamples(const char *Cmd) { #define HF_UNUSABLE_V 3000 #define HF_MARGINAL_V 5000 #define ANTENNA_ERROR 1.03 // current algo has 3% error margin. + + // hide demod plot line + DemodBufferLen = 0; + setClockGrid(0, 0); + RepaintGraphWindow(); + + int timeout = 0; PrintAndLogEx(INFO, "\nmeasuring antenna characteristics, please wait..."); @@ -1575,6 +1582,7 @@ int CmdTuneSamples(const char *Cmd) { PrintAndLogEx(FAILED, "\nNot showing LF tuning graph since all values is zero.\n\n"); } + return 0; }