mirror of
https://gitea.osmocom.org/sim-card/simtrace.git
synced 2026-03-22 16:28:35 +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;
|
int rc;
|
||||||
|
|
||||||
printf("Entering main loop\n");
|
printf("Entering main loop\n");
|
||||||
|
apdu_split_reset(as);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
rc = libusb_bulk_transfer(devh, SIMTRACE_IN_EP, buf, sizeof(buf), &xfer_len, 100000);
|
rc = libusb_bulk_transfer(devh, SIMTRACE_IN_EP, buf, sizeof(buf), &xfer_len, 100000);
|
||||||
|
|||||||
Reference in New Issue
Block a user