From ffd854a303cbcd7e711ed21472bcea35d81b5170 Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Sun, 11 Aug 2019 18:05:08 +0800 Subject: [PATCH] only 1 user presence auth per button press --- targets/stm32l432/src/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/targets/stm32l432/src/device.c b/targets/stm32l432/src/device.c index 3618563..d211bdd 100644 --- a/targets/stm32l432/src/device.c +++ b/targets/stm32l432/src/device.c @@ -509,6 +509,7 @@ int ctap_user_presence_test(uint32_t up_delay) // "cache" button presses for 2 seconds. if (millis() - __last_button_press_time < 2000) { + __last_button_press_time = 0; return 1; } #if SKIP_BUTTON_CHECK_WITH_DELAY