mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
modify sleep stress test timing
now that the initiate suspend call is working right, we need to give a little bit of time for the i2c command to issue to setup the wake alarm before issuing a suspend call. otherwise we end up with a scrambled RTC unit.
This commit is contained in:
parent
b75e048702
commit
19667800cb
1 changed files with 2 additions and 1 deletions
|
|
@ -92,6 +92,7 @@ impl<'a> ShellCmdApi<'a> for Sleep {
|
|||
loop {
|
||||
log::info!("suspend/resume cycle: {}", iters);
|
||||
llio.set_wakeup_alarm(4).unwrap();
|
||||
ticktimer.sleep_ms(1000).unwrap();
|
||||
match susres.initiate_suspend() {
|
||||
Err(xous::Error::Timeout) => {
|
||||
log::warn!("Couldn't suspend, a server was blocking suspend.\n");
|
||||
|
|
@ -101,7 +102,7 @@ impl<'a> ShellCmdApi<'a> for Sleep {
|
|||
log::error!("Unknown error on suspend: {:?}", e);
|
||||
}
|
||||
}
|
||||
ticktimer.sleep_ms(8000).unwrap();
|
||||
ticktimer.sleep_ms(7000).unwrap();
|
||||
iters += 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue