From 843fa33d09a106fb657b76cfd9d7eaa8d0a810b3 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 8 Dec 2023 19:20:39 +0100 Subject: [PATCH] modified to print number of samples. Also added a isnoise check, in order to fast get feedback instead of forcing user to look at the plot window --- client/src/cmdlf.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/cmdlf.c b/client/src/cmdlf.c index 95e71f40b..3cb9075a9 100644 --- a/client/src/cmdlf.c +++ b/client/src/cmdlf.c @@ -815,6 +815,14 @@ int CmdLFRead(const char *Cmd) { do { ret = lf_read_internal(realtime, verbose, samples); } while (cm && kbd_enter_pressed() == false); + + if (ret == PM3_SUCCESS) { + PrintAndLogEx(SUCCESS, "Got " _YELLOW_("%u") " samples", g_GraphTraceLen); + + if (getSignalProperties()->isnoise) { + PrintAndLogEx(INFO, "signal looks like noise"); + } + } return ret; }