From 3b268a33eb22309c51cc621dd751ef8909114672 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Fri, 3 Mar 2023 00:50:13 +0100 Subject: [PATCH] Sending keepalive on cbor processing. Signed-off-by: Pol Henarejos --- src/usb/hid/hid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usb/hid/hid.c b/src/usb/hid/hid.c index dee0b4f..d5cfaba 100644 --- a/src/usb/hid/hid.c +++ b/src/usb/hid/hid.c @@ -46,7 +46,7 @@ bool driver_mounted_hid() { } CTAPHID_FRAME *ctap_req = NULL, *ctap_resp = NULL; - +void send_keepalive(); int driver_init_hid() { #ifndef ENABLE_EMULATION tud_init(BOARD_TUD_RHPORT); @@ -439,6 +439,7 @@ int driver_process_usb_packet_hid(uint16_t read) { if (apdu_sent < 0) { return ctap_error(-apdu_sent); } + send_keepalive(); } else if (ctap_req->init.cmd == CTAPHID_CANCEL) { ctap_error(0x2D);