Merge pull request #264 from qweenwasabi/master
authormarshmellow42 <marshmellow42@users.noreply.github.com>
Fri, 31 Mar 2017 03:12:22 +0000 (23:12 -0400)
committerGitHub <noreply@github.com>
Fri, 31 Mar 2017 03:12:22 +0000 (23:12 -0400)
Update README.txt

client/cmddata.c

index ef1229c267757ec965ba79680b1257c66a07c3a5..0595dffaa71013f17baf0c41a5953aafe48743ac 100644 (file)
@@ -22,8 +22,6 @@
 #include "cmdparser.h"// already included in cmdmain.h
 #include "usb_cmd.h"  // already included in cmdmain.h and proxmark3.h
 #include "lfdemod.h"  // for demod code
-#include "crc.h"      // for pyramid checksum maxim
-#include "crc16.h"    // for FDXB demod checksum
 #include "loclass/cipherutils.h" // for decimating samples in getsamples
 #include "cmdlfem4x.h"// for em410x demod
 
@@ -1298,9 +1296,9 @@ int CmdMtrim(const char *Cmd) {
        if (start > GraphTraceLen       || stop > GraphTraceLen || start > stop) return 0;
        start++; //leave start position sample
 
-       GraphTraceLen -= stop - start;
+       GraphTraceLen = stop - start;
        for (int i = 0; i < GraphTraceLen; i++) {
-               GraphBuffer[start+i] = GraphBuffer[stop+i];
+               GraphBuffer[i] = GraphBuffer[start+i];
        }
        return 0;
 }
Impressum, Datenschutz