diff --git a/CHANGELOG.md b/CHANGELOG.md index 58cf9bd10..101242adf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... +## [unreleased][unreleased] + ## [Daddy Iceman.4.20469][2025-06-16] - Fixed edge case in fm11rf08s key recovery tools (@doegox) - Removed `--par` from `lf em 4x70` commands. diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 5a1e66b74..069aa87c8 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -697,6 +697,9 @@ RAMFUNC int ManchesterDecoding(uint8_t bit, uint16_t offset, uint32_t non_real_t static RAMFUNC int ManchesterDecoding_Thinfilm(uint8_t bit) { if (Demod.len == Demod.output_len) { + // Flush last parity bits + Demod.parityBits <<= (8 - (Demod.len & 0x0007)); // left align remaining parity bits + Demod.parity[Demod.parityLen++] = Demod.parityBits; // and store them return true; } @@ -2903,8 +2906,9 @@ int iso14443a_select_cardEx(uint8_t *uid_ptr, iso14a_card_select_t *p_card, uint if (anticollision) { // clear uid - if (uid_ptr) + if (uid_ptr) { memset(uid_ptr, 0, 10); + } } if (hf14aconfig.forceanticol == 0) {