From fffad860fc457cfe5636fddc78a6a485ae9a7329 Mon Sep 17 00:00:00 2001 From: "adam@algroup.co.uk" Date: Mon, 15 Feb 2010 21:15:52 +0000 Subject: [PATCH] fix output inversion in mandemod --- client/cmddata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5