You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
work around boot instability issue with a delay setting up codec in TTS
The `codec` seems to hang sometimes during `Setup8kStereo` at boot.
Did not get to the bottom of it, but suspect that the RTC I2C init
sequence is interfering with the codec init sequence. This might
be resolved while also fixing #467, but for now, a short delay
on boot works around the problem.
Copy file name to clipboardExpand all lines: services/tts/src/main.rs
+1
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,7 @@ fn main() -> ! {
175
175
}
176
176
});
177
177
letmut codec = codec::Codec::new(&xns).unwrap();
178
+
tt.sleep_ms(150).unwrap();// de-congest startup sequence; TODO: make this not a race condition with RTC access. might be related to #467 (insufficiently broad locking of the I2C bus)
0 commit comments