add margin on the ec reset time

4s seemed like a long time but i found one board that can't quite finish reset in that time, about 70% of the time it needs just a half second longer.
open up the window to 6s, just to ensure we don't get any false negatives.
This commit is contained in:
bunnie 2021-12-02 10:53:39 +08:00 committed by GitHub
parent 572cc8285f
commit 48392ecd13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,7 +213,7 @@ impl<'a> ShellCmdApi<'a> for Test {
let ut = env.com.get_ec_uptime().unwrap();
env.llio.ec_reset().unwrap();
env.ticktimer.sleep_ms(4000).unwrap(); // wait so we have some realistic delta on the datetime function
env.ticktimer.sleep_ms(6000).unwrap(); // wait so we have some realistic delta on the datetime function
self.end_elapsed = Some(env.ticktimer.elapsed_ms());
self.end_time = rtc_get(&mut env.llio);