CHG: centralized the LF signal properties LOW/HIGH/MEAN/AMPLITUDE/ISNOISE into one struct.

CHG: 'data raw ar'  - didn't take in consideration the command line parameter CLOCK.
This commit is contained in:
iceman1001 2017-11-06 15:06:42 +01:00
commit 881c7115a7
9 changed files with 221 additions and 192 deletions

View file

@ -875,7 +875,8 @@ int CmdLFfind(const char *Cmd) {
if (isOnline) {
// only run if graphbuffer is just noise as it should be for hitag
// The improved noise detection will find Cotag.
if (is_justnoise(GraphBuffer, minLength)) {
signal_t *sp = getSignalProperties();
if (sp->isnoise) {
PrintAndLog("Signal looks just like noise. Looking for Hitag signal now.");
if (CmdLFHitagReader("26") == 0) { PrintAndLog("\nValid Hitag Found!"); return 1;}