From 67feca359f66419b6f340bcf58e9642bfd66cac9 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 30 Jul 2021 00:07:43 +0200 Subject: [PATCH] Fix demod plot of data biphasedecoderaw --- client/src/cmddata.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/src/cmddata.c b/client/src/cmddata.c index 4c2eeff60..73b3be1cb 100644 --- a/client/src/cmddata.c +++ b/client/src/cmddata.c @@ -661,12 +661,8 @@ static int CmdBiphaseDecodeRaw(const char *Cmd) { PrintAndLogEx(INFO, "Biphase decoded using offset %d%s", offset, (invert) ? "( inverted )" : ""); PrintAndLogEx(INFO, "%s", sprint_bin_break(bits, size, 32)); - //remove first bit from raw demod - if (offset) { - setDemodBuff(DemodBuffer, DemodBufferLen - offset, offset); - } - - setClockGrid(g_DemodClock, g_DemodStartIdx + g_DemodClock * offset / 2); + setDemodBuff(bits, size, 0); + setClockGrid(g_DemodClock * 2, g_DemodStartIdx + g_DemodClock * offset); return PM3_SUCCESS; }