only 1 user presence auth per button press
This commit is contained in:
parent
349a84dcec
commit
ffd854a303
@ -509,6 +509,7 @@ int ctap_user_presence_test(uint32_t up_delay)
|
|||||||
// "cache" button presses for 2 seconds.
|
// "cache" button presses for 2 seconds.
|
||||||
if (millis() - __last_button_press_time < 2000)
|
if (millis() - __last_button_press_time < 2000)
|
||||||
{
|
{
|
||||||
|
__last_button_press_time = 0;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#if SKIP_BUTTON_CHECK_WITH_DELAY
|
#if SKIP_BUTTON_CHECK_WITH_DELAY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user