mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
reduce I2C chatter on resume
This commit is contained in:
parent
943e45f17e
commit
d67c5d53fb
1 changed files with 1 additions and 0 deletions
|
|
@ -180,6 +180,7 @@ impl Codec {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn resume(&mut self) {
|
pub fn resume(&mut self) {
|
||||||
|
self.ticktimer.sleep_ms(470).unwrap(); // audio code resume has the lowest priority, it should only resume after most other activities stabilized
|
||||||
if self.powered_on {
|
if self.powered_on {
|
||||||
self.llio.audio_on(true).unwrap(); // this is a blocking scalar
|
self.llio.audio_on(true).unwrap(); // this is a blocking scalar
|
||||||
self.ticktimer.sleep_ms(2).unwrap(); // give the codec a moment to power up before writing to it
|
self.ticktimer.sleep_ms(2).unwrap(); // give the codec a moment to power up before writing to it
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue