From adf53b4231726368af387b10255980c8afa76441 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Fri, 29 Dec 2023 19:07:02 +0100 Subject: [PATCH] Fix ATR overwrite. Signed-off-by: Pol Henarejos --- src/usb/emulation/emulation.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/usb/emulation/emulation.c b/src/usb/emulation/emulation.c index 8612219..6487b32 100644 --- a/src/usb/emulation/emulation.c +++ b/src/usb/emulation/emulation.c @@ -224,9 +224,6 @@ int driver_process_usb_packet_emul(uint8_t itf, uint16_t len) { if (len == 1) { uint8_t c = data[0]; if (c == 4) { - if (ccid_atr) { - memcpy(rdata, ccid_atr + 1, ccid_atr[0]); - } driver_write_emul(itf, ccid_atr ? ccid_atr + 1 : NULL, ccid_atr ? ccid_atr[0] : 0); } }