From c9df3c22a04bbd8be17c9d5f042203a28da5e4b2 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Mon, 19 Aug 2024 00:00:46 +0200 Subject: [PATCH] driver_exec_finished_cont_hid() now accepts an itf argument. Signed-off-by: Pol Henarejos --- src/apdu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apdu.c b/src/apdu.c index 61e96e8..c53a48f 100644 --- a/src/apdu.c +++ b/src/apdu.c @@ -133,7 +133,7 @@ uint16_t apdu_process(uint8_t itf, const uint8_t *buffer, uint16_t buffer_size) #ifndef ENABLE_EMULATION #ifdef USB_ITF_HID if (itf == ITF_HID) { - driver_exec_finished_cont_hid(apdu.rlen + 2, rdata_gr - (usb_get_tx(itf))); + driver_exec_finished_cont_hid(itf, apdu.rlen + 2, rdata_gr - (usb_get_tx(itf))); } #endif #ifdef USB_ITF_CCID @@ -162,7 +162,7 @@ uint16_t apdu_process(uint8_t itf, const uint8_t *buffer, uint16_t buffer_size) #ifndef ENABLE_EMULATION #ifdef USB_ITF_HID if (itf == ITF_HID) { - driver_exec_finished_cont_hid(apdu.ne + 2, rdata_gr - apdu.ne - (usb_get_tx(itf))); + driver_exec_finished_cont_hid(itf, apdu.ne + 2, rdata_gr - apdu.ne - (usb_get_tx(itf))); } #endif #ifdef USB_ITF_CCID