mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-05-02 12:01:34 +00:00
XAP messages extend timeout?
This commit is contained in:
parent
ffb0575eb8
commit
1ea2928d2a
@ -47,6 +47,12 @@ void secure_request_unlock(void) {
|
||||
}
|
||||
}
|
||||
|
||||
void secure_activity_event(void) {
|
||||
if (secure_status == SECURE_UNLOCKED) {
|
||||
idle_time = timer_read32();
|
||||
}
|
||||
}
|
||||
|
||||
void secure_keypress_event(uint8_t row, uint8_t col) {
|
||||
static const uint8_t sequence[][2] = SECURE_UNLOCK_SEQUENCE;
|
||||
|
||||
|
@ -22,6 +22,8 @@ void secure_unlock(void);
|
||||
|
||||
void secure_request_unlock(void);
|
||||
|
||||
void secure_activity_event(void);
|
||||
|
||||
void secure_keypress_event(uint8_t row, uint8_t col);
|
||||
|
||||
void secure_task(void);
|
||||
|
@ -97,6 +97,9 @@ void xap_execute_route(xap_token_t token, const xap_route_t *routes, size_t max_
|
||||
// xap_respond_failure(token, XAP_RESPONSE_FLAG_UNLOCK_IN_PROGRESS);
|
||||
// return;
|
||||
// }
|
||||
|
||||
// TODO: XAP messages extend timeout?
|
||||
secure_activity_event();
|
||||
#endif
|
||||
|
||||
switch (route.flags.type) {
|
||||
|
Loading…
Reference in New Issue
Block a user