]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: "hf legic decode" the stamp_len variable was int, but its used as a uint8_t.
authoriceman1001 <iceman@iuse.se>
Sun, 14 Feb 2016 14:30:26 +0000 (15:30 +0100)
committericeman1001 <iceman@iuse.se>
Sun, 14 Feb 2016 14:30:26 +0000 (15:30 +0100)
FIX: cmdlfem4x.c needed ref to cmdmain.h for clearCommandBuffer

client/cmdhflegic.c
client/cmdlfem4x.c
client/cmdlfem4x.h

index aef6ef0c76733a1b6d149d0390024cee8ec934ae..18c4f7360846eba2fe6864af4b8eec44f77027a8 100644 (file)
@@ -47,7 +47,7 @@ int CmdLegicDecode(const char *Cmd) {
        int i, k, n;
        int segment_len = 0;
        int segment_flag = 0;
-       int stamp_len = 0;
+       uint8_t stamp_len = 0;
        int crc = 0;
        int wrp = 0;
        int wrc = 0;
index 25cc075beeae9022835663e033bf30165c8b25d3..1bcc384a50a8cc8d739265a62b4897ed0c5c9a6a 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <inttypes.h>
-#include "proxmark3.h"
-#include "ui.h"
-#include "util.h"
-#include "graph.h"
-#include "cmdparser.h"
-#include "cmddata.h"
-#include "cmdlf.h"
 #include "cmdlfem4x.h"
-#include "lfdemod.h"
 
 char *global_em410xId;
 
index 400536d30b117a85071af7f035e9ffa0ff6e6921..f910c9802f2524fcba4f184c4c71de842166573f 100644 (file)
 
 #ifndef CMDLFEM4X_H__
 #define CMDLFEM4X_H__
+#include "proxmark3.h"
+#include "ui.h"
+#include "util.h"
+#include "graph.h"
+#include "cmdparser.h"
+#include "cmddata.h"
+#include "cmdmain.h"
+#include "cmdmain.h"
+#include "cmdlf.h"
+#include "lfdemod.h"
 
 int CmdEMdemodASK(const char *Cmd);
 int CmdEM410xRead(const char *Cmd);
Impressum, Datenschutz