]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - winsrc/command.cpp
Create a stamp file for download completion so that it won't have to be redone later
[proxmark3-svn] / winsrc / command.cpp
index f03bada4c00d7a57cd3716729f6215a9e68a1542..061ea456a13d37ff16fa1d79093b7a8ab46fd83b 100644 (file)
@@ -2532,7 +2532,12 @@ static void Cmdmanchesterdemod(char *str) {
 \r
        /* Detect first transition */\r
        /* Lo-Hi (arbitrary)       */\r
-       for (i = 0; i < GraphTraceLen; i++)\r
+       /* skip to the first high */\r
+       for (i= 0; i < GraphTraceLen; i++)\r
+               if(GraphBuffer[i] == high)\r
+                       break;\r
+       /* now look for the first low */\r
+       for (; i < GraphTraceLen; i++)\r
        {\r
                if (GraphBuffer[i] == low)\r
                {\r
Impressum, Datenschutz