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.
This commit is contained in:
parent
943d7d28dc
commit
54683c7b8f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue