]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
fix output inversion in mandemod
authoradam@algroup.co.uk <adam@algroup.co.uk@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Mon, 15 Feb 2010 21:15:52 +0000 (21:15 +0000)
committeradam@algroup.co.uk <adam@algroup.co.uk@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Mon, 15 Feb 2010 21:15:52 +0000 (21:15 +0000)
client/cmddata.c

index 05a375c5e1296cfc69ea34f70c968984ca005668..561132bf16113a15a10a2eb01588172e2dad54ce 100644 (file)
@@ -534,10 +534,11 @@ int CmdManchesterDemod(const char *Cmd)
   int warnings = 0;
 
   /* check if we're inverting output */
   int warnings = 0;
 
   /* check if we're inverting output */
-  if (*Cmd == 'i')
+  if (*(Cmd + 1) == 'i')
   {
     PrintAndLog("Inverting output");
     invert = 1;
   {
     PrintAndLog("Inverting output");
     invert = 1;
+    ++Cmd;
     do
       ++Cmd;
     while(*Cmd == ' '); // in case a 2nd argument was given
     do
       ++Cmd;
     while(*Cmd == ' '); // in case a 2nd argument was given
Impressum, Datenschutz