Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Oct 16, 2023
1 parent 031ee59 commit 98b7c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applets/piv/piv.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@
#define AUTH_STATE_EXTERNAL 1
#define AUTH_STATE_MUTUAL 2

#define PIV_TOUCH(cached) \
#define PIV_TOUCH(cached) \
do { \
if (is_nfc()) break; \
uint32_t current_tick = device_get_tick(); \
if ((cached) && current_tick > last_touch && current_tick - last_touch < 15000) break; \
if ((cached) && current_tick > last_touch && current_tick - last_touch < 15000) break; \
switch (wait_for_user_presence(WAIT_ENTRY_CCID)) { \
case USER_PRESENCE_CANCEL: \
case USER_PRESENCE_TIMEOUT: \
Expand Down

0 comments on commit 98b7c2b

Please sign in to comment.