From: marshmellow42 Date: Wed, 28 Mar 2018 12:50:08 +0000 (-0400) Subject: Revert "Fix offset Indala UID display" X-Git-Tag: v3.1.0~62^2 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/7ecf7cf6cc7620a34306902ee3505afc17dc0de0 Revert "Fix offset Indala UID display" --- diff --git a/common/lfdemod.c b/common/lfdemod.c index fd149045..f470371a 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -1780,7 +1780,6 @@ int IOdemodFSK(uint8_t *dest, size_t size, int *waveStartIdx) { // indala id decoding int indala64decode(uint8_t *bitStream, size_t *size, uint8_t *invert) { //standard 64 bit indala formats including 26 bit 40134 format - // Note: these start with 3 bits from the end of one UID; the rest are from a subsequent one uint8_t preamble64[] = {1,0,1,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 1}; uint8_t preamble64_i[] = {0,1,0,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, 0}; size_t startidx = 0; @@ -1792,10 +1791,6 @@ int indala64decode(uint8_t *bitStream, size_t *size, uint8_t *invert) { *invert ^= 1; } if (found_size != 64) return -2; - - // Skip the aforementioned 3 bits from the previous UID - startidx += 3; - if (*invert==1) for (size_t i = startidx; i < found_size + startidx; i++) bitStream[i] ^= 1;