From d992ce73c3c0acc4d4aea1ab19c5011778a026f5 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 4 Aug 2021 18:25:23 +0200 Subject: [PATCH] re-added the old checksum bits but guarded them as debug prints --- client/src/cmdlfindala.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/cmdlfindala.c b/client/src/cmdlfindala.c index 98e90b3ef..38b7c264c 100644 --- a/client/src/cmdlfindala.c +++ b/client/src/cmdlfindala.c @@ -198,12 +198,17 @@ int demodIndalaEx(int clk, int invert, int maxErr, bool verbose) { parity |= DemodBuffer[34] << 1; // b2 parity |= DemodBuffer[38] << 0; // b1 + uint8_t checksum = 0; + checksum |= DemodBuffer[62] << 1; // b2 + checksum |= DemodBuffer[63] << 0; // b1 + PrintAndLogEx(SUCCESS, "Fmt " _GREEN_("26") " FC: " _GREEN_("%u") " Card: " _GREEN_("%u") " Parity: " _GREEN_("%1d%1d") , fc , csn , parity >> 1 & 0x01 , parity & 0x01 ); + PrintAndLogEx(DEBUG, "two bit checksum... " _GREEN_("%1d%1d"), checksum >> 1 & 0x01, checksum & 0x01); PrintAndLogEx(SUCCESS, "Possible de-scramble patterns"); // This doesn't seem to line up with the hot-stamp numbers on any HID cards I have seen, but, leaving it alone since I do not know how those work. -MS