mirror of
https://gitea.osmocom.org/sim-card/simtrace.git
synced 2026-03-16 21:28:36 +03:00
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:
committed by
Harald Welte
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);
|
||||
|
||||
Reference in New Issue
Block a user