mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
fix ManchesterDecoding_Thinfilm (msb was always forced to 0)
This commit is contained in:
parent
3fb442798d
commit
118c8478f0
2 changed files with 5 additions and 13 deletions
|
@ -30,15 +30,6 @@ void ReadThinFilm(void) {
|
|||
|
||||
// power on and listen for answer.
|
||||
bool status = GetIso14443aAnswerFromTag_Thinfilm(buf, &len);
|
||||
|
||||
// lsb -> msb
|
||||
for (uint8_t i = 0; i < len; i++) {
|
||||
uint8_t b = buf[i];
|
||||
buf[i] = ((b * 0x0802LU & 0x22110LU) | (b * 0x8020LU & 0x88440LU)) * 0x10101LU >> 16;
|
||||
}
|
||||
// Startbit is always set and used in byte
|
||||
buf[0] |= 0x80;
|
||||
|
||||
reply_ng(CMD_THINFILM_READ, status ? PM3_SUCCESS : PM3_ENODATA, buf, len);
|
||||
|
||||
iso14443a_off();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue