add some more time allowance for resets to process from boot

This commit is contained in:
bunnie 2023-01-26 23:33:38 +08:00
parent c3ab5ca126
commit dee4bac956

View file

@ -115,7 +115,10 @@ 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?
// Needs more tolerance for Xous automated test bench, expanded to 20 seconds.
#[cfg(not(feature="xous"))]
const RESET_TIMEOUT_DURATION: Duration = Duration::from_millis(10000);
// Needs more timing tolerance for Xous automated test bench, expanded to 20 seconds.
#[cfg(feature="xous")]
const RESET_TIMEOUT_DURATION: Duration = Duration::from_millis(20000);
const STATEFUL_COMMAND_TIMEOUT_DURATION: Duration = Duration::from_millis(30000);