XAP messages extend timeout?

xap
zvecr 3 years ago
parent ffb0575eb8
commit 1ea2928d2a
  1. 6
      quantum/secure.c
  2. 2
      quantum/secure.h
  3. 3
      quantum/xap/xap.c

@ -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) { void secure_keypress_event(uint8_t row, uint8_t col) {
static const uint8_t sequence[][2] = SECURE_UNLOCK_SEQUENCE; static const uint8_t sequence[][2] = SECURE_UNLOCK_SEQUENCE;

@ -22,6 +22,8 @@ void secure_unlock(void);
void secure_request_unlock(void); void secure_request_unlock(void);
void secure_activity_event(void);
void secure_keypress_event(uint8_t row, uint8_t col); void secure_keypress_event(uint8_t row, uint8_t col);
void secure_task(void); 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); // xap_respond_failure(token, XAP_RESPONSE_FLAG_UNLOCK_IN_PROGRESS);
// return; // return;
// } // }
// TODO: XAP messages extend timeout?
secure_activity_event();
#endif #endif
switch (route.flags.type) { switch (route.flags.type) {

Loading…
Cancel
Save