From: adam@algroup.co.uk Date: Mon, 15 Feb 2010 21:15:52 +0000 (+0000) Subject: fix output inversion in mandemod X-Git-Tag: v1.0.0~365 X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/fffad860fc457cfe5636fddc78a6a485ae9a7329 fix output inversion in mandemod --- diff --git a/client/cmddata.c b/client/cmddata.c index 05a375c5..561132bf 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -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