fix output inversion in mandemod

This commit is contained in:
adam@algroup.co.uk 2010-02-15 21:15:52 +00:00
parent dbf444a179
commit fffad860fc

View file

@ -534,10 +534,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