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
This commit is contained in:
iceman1001 2016-02-14 15:30:26 +01:00
commit 60bb5ef73b
3 changed files with 11 additions and 9 deletions

View 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;

View file

@ -11,15 +11,7 @@
#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;

View file

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