From f58bcaecf1a9d971acc44d45a4affd7a7af68874 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Wed, 11 Dec 2024 22:36:09 +0100 Subject: [PATCH] In pure U2F mode, no keepalive is sent by authenticator. Instead, client sends commands to know the status. Signed-off-by: Pol Henarejos --- src/usb/hid/hid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/usb/hid/hid.c b/src/usb/hid/hid.c index 3d932b6..15356d0 100644 --- a/src/usb/hid/hid.c +++ b/src/usb/hid/hid.c @@ -246,6 +246,7 @@ int driver_write_hid(uint8_t itf, const uint8_t *buffer, uint16_t buffer_size) { return 0; } bool r = tud_hid_n_report(itf, 0, buffer, buffer_size); + DEBUG_PAYLOAD(buffer, buffer_size); last_write_result[itf] = r ? WRITE_PENDING : WRITE_FAILED; if (last_write_result[itf] == WRITE_FAILED) { return 0;