fix hitag demodulation when ending on unexpected period count + completion with last half

This commit is contained in:
Philippe Teuwen 2020-01-15 21:14:16 +01:00
parent b57f40e3d7
commit b2db893e83

View file

@ -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;