From 54683c7b8ff2bdbebd51df60dc60d9bd5ae50399 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 9 Oct 2011 20:14:02 +0200 Subject: [PATCH] main: Re-initialize the APDU split method when we enter the main_loop Make sure we forget the current state of the APDU splitter when we re-enter the mainloop of the application. --- host/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/host/main.c b/host/main.c index 60fa342..36d6a06 100644 --- a/host/main.c +++ b/host/main.c @@ -142,6 +142,7 @@ static void run_mainloop(struct libusb_device_handle *devh) int rc; printf("Entering main loop\n"); + apdu_split_reset(as); while (1) { rc = libusb_bulk_transfer(devh, SIMTRACE_IN_EP, buf, sizeof(buf), &xfer_len, 100000);