From de65a431cfd9a5dd45f3004bbe2ed220c0050b84 Mon Sep 17 00:00:00 2001 From: mwalker33 Date: Fri, 28 Feb 2020 19:28:51 +1100 Subject: [PATCH] Update cmdlfkeri.c --- client/cmdlfkeri.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/cmdlfkeri.c b/client/cmdlfkeri.c index b0f45da04..4a0c3c8fd 100644 --- a/client/cmdlfkeri.c +++ b/client/cmdlfkeri.c @@ -181,7 +181,10 @@ static int CmdKeriDemod(const char *Cmd) { uint32_t raw2 = bytebits_to_byte(DemodBuffer + 32, 32); //get internal id - uint32_t ID = bytebits_to_byte(DemodBuffer + 29, 32); + // uint32_t ID = bytebits_to_byte(DemodBuffer + 29, 32); + // Due to the 3 sync bits being at the start of the capture + // We can take the last 32bits as the internal ID. + uint32_t ID = raw2; ID &= 0x7FFFFFFF; /*