From: marshmellow42 Date: Tue, 9 Feb 2016 18:39:46 +0000 (-0500) Subject: fix lf viking clone mask bug X-Git-Tag: v2.3.0~8^2~1 X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/0c1cb4aef074f37ac0368103a7e26421705861aa fix lf viking clone mask bug should be a 32 bit mask not a 16 bit mask also added client feedback. --- diff --git a/client/cmdlfviking.c b/client/cmdlfviking.c index e43a9748..8c0656d2 100644 --- a/client/cmdlfviking.c +++ b/client/cmdlfviking.c @@ -74,8 +74,8 @@ int CmdVikingClone(const char *Cmd) { Q5 = true; rawID = getVikingBits(id); - - UsbCommand c = {CMD_VIKING_CLONE_TAG,{rawID >> 32, rawID & 0xFFFF, Q5}}; + PrintAndLog("Cloning - ID: %08X, Raw: %08X%08X",id,(uint32_t)(rawID >> 32),(uint32_t) (rawID & 0xFFFFFFFF)); + UsbCommand c = {CMD_VIKING_CLONE_TAG,{rawID >> 32, rawID & 0xFFFFFFFF, Q5}}; clearCommandBuffer(); SendCommand(&c); //check for ACK