lf search is working :)

This commit is contained in:
iceman1001 2017-07-31 12:31:39 +02:00
commit 0acc606be3
2 changed files with 55 additions and 65 deletions

View file

@ -1711,6 +1711,7 @@ int Em410xDecode(uint8_t *bits, size_t *size, size_t *startIdx, uint32_t *hi, ui
if (!preambleSearch(bits, preamble, sizeof(preamble), size, startIdx))
return -4;
// (iceman) if the preamble doesn't find two occuriences, this identification fails.
fmtlen = (*size == 128) ? 22 : 10;
//skip last 4bit parity row for simplicity