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

This commit is contained in:
iceman1001 2023-12-08 19:20:39 +01:00
commit 843fa33d09

View file

@ -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;
}