come back out of stopped if we receive audio data
This commit is contained in:
@@ -556,7 +556,8 @@ impl<D: Dac<I>, I, B: bus::UsbBus> AudioHandler<'_, B> for Audio<'_, D, I> {
|
||||
// Valid states here are Armed, Prefill, Running, Draining and NoData
|
||||
match state {
|
||||
AudioState::Stopped | AudioState::Stopping => {
|
||||
defmt::error!("Received audio data when stopped/stopping")
|
||||
defmt::warn!("Received audio data when stopped/stopping");
|
||||
self.transition(AudioState::Prefill);
|
||||
}
|
||||
// When armed, data rx goes to prefill
|
||||
AudioState::Armed => self.transition(AudioState::Prefill),
|
||||
|
||||
Reference in New Issue
Block a user