]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmddata.c
Add License/Copyright headers/notices. Please add your own copyright notice if you...
[proxmark3-svn] / client / cmddata.c
index 05a375c5e1296cfc69ea34f70c968984ca005668..92e587abfc6c75321fee59f0cb4fb414390fbe59 100644 (file)
@@ -1,3 +1,13 @@
+//-----------------------------------------------------------------------------
+// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
+//
+// This code is licensed to you under the terms of the GNU GPL, version 2 or,
+// at your option, any later version. See the LICENSE.txt file for the text of
+// the license.
+//-----------------------------------------------------------------------------
+// Data and Graph commands
+//-----------------------------------------------------------------------------
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -534,10 +544,11 @@ int CmdManchesterDemod(const char *Cmd)
   int warnings = 0;
 
   /* check if we're inverting output */
-  if (*Cmd == 'i')
+  if (*(Cmd + 1) == 'i')
   {
     PrintAndLog("Inverting output");
     invert = 1;
+    ++Cmd;
     do
       ++Cmd;
     while(*Cmd == ' '); // in case a 2nd argument was given
Impressum, Datenschutz