Fix init_cmd channel.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-03-03 00:22:45 +01:00
parent 8f8134efbc
commit 96f2dab74b
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -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;