]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
fix lf viking clone mask bug
authormarshmellow42 <marshmellowrf@gmail.com>
Tue, 9 Feb 2016 18:39:46 +0000 (13:39 -0500)
committermarshmellow42 <marshmellowrf@gmail.com>
Tue, 9 Feb 2016 18:40:01 +0000 (13:40 -0500)
should be a 32 bit mask not a 16 bit mask
also added client feedback.

client/cmdlfviking.c

index e43a9748902369cd28ba1d5b0d1e3681c4f74411..8c0656d2b31be6a9590e7161d4f77aba901df0b2 100644 (file)
@@ -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
Impressum, Datenschutz