From 007782cd2b24edef3ae838cc629b0c42bc980f43 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Thu, 12 Jan 2023 20:03:51 +0100 Subject: [PATCH] Moving debug data. Signed-off-by: Pol Henarejos --- src/usb/emulation/emulation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usb/emulation/emulation.c b/src/usb/emulation/emulation.c index 02bfee3..81752d3 100644 --- a/src/usb/emulation/emulation.c +++ b/src/usb/emulation/emulation.c @@ -87,7 +87,7 @@ uint8_t *driver_prepare_response_emul() { int driver_write_emul(const uint8_t *buffer, size_t buffer_size) { uint16_t size = htons(buffer_size); - DEBUG_PAYLOAD(buffer,buffer_size); + //DEBUG_PAYLOAD(buffer,buffer_size); int ret = 0; do { ret = send(sock, &size, sizeof(size), 0); @@ -131,6 +131,7 @@ int driver_process_usb_packet_emul(uint16_t len) { process_apdu(); apdu_finish(); size_t ret = apdu_next(); + DEBUG_PAYLOAD(rdata, ret); emul_write(ret); } }