only 1 user presence auth per button press

This commit is contained in:
Conor Patrick 2019-08-11 18:05:08 +08:00
parent 349a84dcec
commit ffd854a303

View File

@ -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