make reset timing a bit looser

currently 10 seconds from boot before cred reset can be issued;
automated testing can't always keep up with that. expand to
20 seconds. This is not "standards compliant" but the idea that
you unplug the device and it stays on is also not "standards compliant".
This commit is contained in:
bunnie 2023-01-26 17:59:52 +08:00
parent 705427b2c4
commit c21f1069bc

View file

@ -115,7 +115,8 @@ pub const TOUCH_TIMEOUT: Duration = Duration::from_millis(TOUCH_TIMEOUT_MS);
#[cfg(feature = "with_ctap1")]
pub const U2F_UP_PROMPT_TIMEOUT: Duration = Duration::from_millis(10000);
// TODO(kaczmarczyck) 2.1 allows Reset after Reset and 15 seconds?
const RESET_TIMEOUT_DURATION: Duration = Duration::from_millis(10000);
// Needs more tolerance for Xous automated test bench, expanded to 20 seconds.
const RESET_TIMEOUT_DURATION: Duration = Duration::from_millis(20000);
const STATEFUL_COMMAND_TIMEOUT_DURATION: Duration = Duration::from_millis(30000);
pub const FIDO2_VERSION_STRING: &str = "FIDO_2_0";