bugfix hf mf sim

- an additional erronous byte was sent after SAK
This commit is contained in:
pwpiwi 2014-08-05 18:40:19 +02:00
parent b03c0f2d86
commit bfb6a143ea

View file

@ -2279,7 +2279,7 @@ void Mifare1ksim(uint8_t flags, uint8_t exitAfterNReads, uint8_t arg2, uint8_t *
// select card // select card
if (len == 9 && if (len == 9 &&
(receivedCmd[0] == 0x93 && receivedCmd[1] == 0x70 && memcmp(&receivedCmd[2], rUIDBCC1, 4) == 0)) { (receivedCmd[0] == 0x93 && receivedCmd[1] == 0x70 && memcmp(&receivedCmd[2], rUIDBCC1, 4) == 0)) {
EmSendCmd(_7BUID?rSAK1:rSAK, sizeof(_7BUID?rSAK1:rSAK)); EmSendCmd(_7BUID?rSAK1:rSAK, _7BUID?sizeof(rSAK1):sizeof(rSAK));
cuid = bytes_to_num(rUIDBCC1, 4); cuid = bytes_to_num(rUIDBCC1, 4);
if (!_7BUID) { if (!_7BUID) {
cardSTATE = MFEMUL_WORK; cardSTATE = MFEMUL_WORK;