Reset must be confirmed always.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-09-23 18:07:05 +02:00
parent d558941311
commit bfc82d5de4

View File

@@ -30,7 +30,7 @@ int cbor_reset() {
if (board_millis() > 10000)
return CTAP2_ERR_NOT_ALLOWED;
#endif
if (check_user_presence() == false)
if (wait_button_pressed() == true)
return CTAP2_ERR_USER_ACTION_TIMEOUT;
initialize_flash(true);
init_fido(true);