From b2db893e836c0f37f6d0c2ea1ebe72aaf02d3fa7 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 15 Jan 2020 21:14:16 +0100 Subject: [PATCH] fix hitag demodulation when ending on unexpected period count + completion with last half --- armsrc/hitag2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/armsrc/hitag2.c b/armsrc/hitag2.c index 474207590..b9aeafd2b 100644 --- a/armsrc/hitag2.c +++ b/armsrc/hitag2.c @@ -1466,7 +1466,6 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) { nrz_samples[nrzs++] = tag_modulation; tag_modulation ^= 1; } else { - tag_modulation ^= 1; // The function lf_count_edge_periods() returns > 64 periods, this is not a valid number periods Dbprintf("Detected unexpected period count: %d", periods); break;