]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfnexwatch.c
fix compiler warning in cmdhflegic.c (and whitespace fixes) (#826)
[proxmark3-svn] / client / cmdlfnexwatch.c
index 64ea54e5d88db84871c3bdc757fd4e7c45b8a256..d44c2a276205ff30c48be2da64ae6f14738a298c 100644 (file)
@@ -7,12 +7,14 @@
 // Low frequency Honeywell NexWatch tag commands
 // PSK1 RF/16, RF/2, 128 bits long (known)
 //-----------------------------------------------------------------------------
+
+#include "cmdlfnexwatch.h"
+
 #include <stdio.h>
 #include <string.h>
 #include <inttypes.h>
 #include <stdbool.h>
-#include "cmdlfnexwatch.h"
-#include "proxmark3.h"
+#include "comms.h"
 #include "ui.h"
 #include "util.h"
 #include "graph.h"
@@ -38,7 +40,8 @@ int CmdPSKNexWatch(const char *Cmd)
        }
        if (size != 128) return 0;
        setDemodBuf(DemodBuffer, size, startIdx+4);
-       startIdx = 8+32; //4 = extra i added, 8 = preamble, 32 = reserved bits (always 0)
+       setClockGrid(g_DemodClock, g_DemodStartIdx + ((startIdx+4)*g_DemodClock));
+       startIdx = 8+32; // 8 = preamble, 32 = reserved bits (always 0)
        //get ID
        uint32_t ID = 0;
        for (uint8_t wordIdx=0; wordIdx<4; wordIdx++){
Impressum, Datenschutz