fix ManchesterDecoding_Thinfilm (msb was always forced to 0)

This commit is contained in:
Philippe Teuwen 2019-08-01 16:55:20 +02:00
commit 118c8478f0
2 changed files with 5 additions and 13 deletions

View file

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