mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-29 01:21:21 +02:00
In pure U2F mode, no keepalive is sent by authenticator. Instead, client sends commands to know the status.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -246,6 +246,7 @@ int driver_write_hid(uint8_t itf, const uint8_t *buffer, uint16_t buffer_size) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
bool r = tud_hid_n_report(itf, 0, buffer, buffer_size);
|
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;
|
last_write_result[itf] = r ? WRITE_PENDING : WRITE_FAILED;
|
||||||
if (last_write_result[itf] == WRITE_FAILED) {
|
if (last_write_result[itf] == WRITE_FAILED) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user