From: iceman1001 Date: Tue, 9 Feb 2016 19:42:59 +0000 (+0100) Subject: FIX: @marshmellow's fix for "lf viking clone", wrong mask was applied. X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/022346a195b1da167058804b2d996ca5f0b56aaa?hp=ea54ec739592304a3aa03f3f1bc24c12c4d4b708 FIX: @marshmellow's fix for "lf viking clone", wrong mask was applied. see: http://www.proxmark.org/forum/viewtopic.php?pid=19896#p19896 --- diff --git a/client/cmdlfviking.c b/client/cmdlfviking.c index b0fa3aad..f717c3f9 100644 --- a/client/cmdlfviking.c +++ b/client/cmdlfviking.c @@ -53,6 +53,7 @@ uint64_t getVikingBits(uint32_t id) { ret |= checksum; return ret; } + //by marshmellow //see ASKDemod for what args are accepted int CmdVikingRead(const char *Cmd) { @@ -80,7 +81,7 @@ int CmdVikingClone(const char *Cmd) { rawID = getVikingBits(id); - UsbCommand c = {CMD_VIKING_CLONE_TAG,{rawID >> 32, rawID & 0xFFFF, Q5}}; + UsbCommand c = {CMD_VIKING_CLONE_TAG,{rawID >> 32, rawID & 0xFFFFFFFF, Q5}}; clearCommandBuffer(); SendCommand(&c); //check for ACK