#include <inttypes.h>
#include "cmdlfem4x.h"
-char *global_em410xId;
+uint64_t g_em410xid = 0;
static int CmdHelp(const char *Cmd);
PrintAndLog ("EM410x XL pattern found");
return 0;
}
- char id[12] = {0x00};
- //sprintf(id, "%010llx",lo);
- sprintf(id, "%010"PRIu64, lo);
-
- global_em410xId = id;
+ g_em410xid = lo;
return 1;
}
}
//currently only supports manchester modulations
+// todo: helptext
int CmdEM410xWatchnSpoof(const char *Cmd)
{
+ // loops if the captured ID was in XL-format.
CmdEM410xWatch(Cmd);
- PrintAndLog("# Replaying captured ID: %s",global_em410xId);
+ PrintAndLog("# Replaying captured ID: %llu", g_em410xid);
CmdLFaskSim("");
return 0;
}