From 96f2dab74b8ef6a8ef8ff00f0b4037fcf4b472f9 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Fri, 3 Mar 2023 00:22:45 +0100 Subject: [PATCH] Fix init_cmd channel. Signed-off-by: Pol Henarejos --- src/usb/hid/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb/hid/hid.c b/src/usb/hid/hid.c index a2172f2..dee0b4f 100644 --- a/src/usb/hid/hid.c +++ b/src/usb/hid/hid.c @@ -333,7 +333,7 @@ int driver_process_usb_packet_hid(uint16_t read) { resp->versionMinor = HSM_SDK_VERSION_MINOR; resp->capFlags = CAPFLAG_WINK | CAPFLAG_CBOR; - ctap_resp->cid = CID_BROADCAST; + ctap_resp->cid = ctap_req->cid; ctap_resp->init.cmd = CTAPHID_INIT; ctap_resp->init.bcntl = 17; ctap_resp->init.bcnth = 0;