From 60bb5ef73b299f4abdbf657b34477dfb1f94e35d Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 14 Feb 2016 15:30:26 +0100 Subject: [PATCH] FIX: "hf legic decode" the stamp_len variable was int, but its used as a uint8_t. FIX: cmdlfem4x.c needed ref to cmdmain.h for clearCommandBuffer --- client/cmdhflegic.c | 2 +- client/cmdlfem4x.c | 8 -------- client/cmdlfem4x.h | 10 ++++++++++ 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/client/cmdhflegic.c b/client/cmdhflegic.c index aef6ef0c..18c4f736 100644 --- a/client/cmdhflegic.c +++ b/client/cmdhflegic.c @@ -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; diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index 25cc075b..1bcc384a 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -11,15 +11,7 @@ #include #include #include -#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; diff --git a/client/cmdlfem4x.h b/client/cmdlfem4x.h index 400536d3..f910c980 100644 --- a/client/cmdlfem4x.h +++ b/client/cmdlfem4x.h @@ -10,6 +10,16 @@ #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); -- 2.39.5