mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-11 09:48:24 +02:00
Fix keepalive msg.
Only sent when CBOR is initiatied. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -326,6 +326,7 @@ void send_keepalive() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void driver_exec_timeout() {
|
void driver_exec_timeout() {
|
||||||
|
if (thread_type == 2)
|
||||||
send_keepalive();
|
send_keepalive();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -338,10 +339,12 @@ uint8_t *driver_prepare_response() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void driver_exec_finished(size_t size_next) {
|
void driver_exec_finished(size_t size_next) {
|
||||||
|
if (size_next > 0) {
|
||||||
if (thread_type == 2 && apdu.sw != 0)
|
if (thread_type == 2 && apdu.sw != 0)
|
||||||
ctap_error(apdu.sw & 0xff);
|
ctap_error(apdu.sw & 0xff);
|
||||||
else
|
else
|
||||||
driver_exec_finished_cont(size_next, 7);
|
driver_exec_finished_cont(size_next, 7);
|
||||||
|
}
|
||||||
apdu.sw = 0;
|
apdu.sw = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user