]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmddata.c
ADD: num_to_bytebitsLSBF function.
[proxmark3-svn] / client / cmddata.c
index 8e0668f734dcf030e49ef5d55d158495493744dc..311e5b3215a681da3d792cef00dff399a6c4acd6 100644 (file)
@@ -619,13 +619,13 @@ int CmdG_Prox_II_Demod(const char *Cmd)
                        continue;
                } 
                if (keyCnt<8){ //lsb first
-                       xorKey = xorKey | (DemodBuffer[startIdx+idx]<<keyCnt);
+                       xorKey |=  (DemodBuffer[startIdx+idx]<<keyCnt);
                        keyCnt++;
                        if (keyCnt==8 && g_debugMode) PrintAndLog("xorKey Found: %02x", xorKey);
                        continue;
                }
                //lsb first
-               ByteStream[ByteCnt] = ByteStream[ByteCnt] | (DemodBuffer[startIdx+idx]<<bitCnt);
+               ByteStream[ByteCnt] |=  (DemodBuffer[startIdx+idx]<<bitCnt);
                bitCnt++;
                if (bitCnt % 8 == 0){
                        if (g_debugMode) PrintAndLog("byte %u: %02x", (unsigned int)ByteCnt, ByteStream[ByteCnt]);
Impressum, Datenschutz