From: adam@algroup.co.uk Date: Fri, 5 Mar 2010 23:39:07 +0000 (+0000) Subject: fix id offset in hid simulate X-Git-Tag: v1.0.0~287 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/f443ff3ebc46708e3c552d549d55b6d52f9c93a7 fix id offset in hid simulate --- diff --git a/client/cmdlfhid.c b/client/cmdlfhid.c index 344662e1..eb0d83a9 100644 --- a/client/cmdlfhid.c +++ b/client/cmdlfhid.c @@ -46,7 +46,7 @@ int CmdHIDDemodFSK(const char *Cmd) int CmdHIDSim(const char *Cmd) { unsigned int hi = 0, lo = 0; - int n = 0, i = 0; + int n = 0, i = 1; while (sscanf(&Cmd[i++], "%1x", &n ) == 1) { hi = (hi << 4) | (lo >> 28);