Skip to content

Commit

Permalink
Merge pull request #7 from CorvusPrudens/codec-version-fix
Browse files Browse the repository at this point in the history
Fixed Seed version codec init
  • Loading branch information
CorvusPrudens authored Aug 22, 2024
2 parents 6212ab7 + 72e2828 commit cdf86cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl Audio {
// Besides this CODEC startup, the code for the Seed and
// Seed 1.1 is the same.
match board_version {
crate::system::Version::Seed => {
crate::system::Version::Seed1_1 => {
info!("Setting up WM8731 Audio Codec...");
let i2c2_pins = (
i2c_scl.into_alternate_open_drain(),
Expand All @@ -256,7 +256,7 @@ impl Audio {
delay.delay_ms(1);
}
}
crate::system::Version::Seed1_1 => {
crate::system::Version::Seed => {
info!("Setting up AK4556 Audio Codec...");
let mut ak_reset = i2c_sda
.into_push_pull_output_in_state(stm32h7xx_hal::gpio::PinState::High);
Expand Down

1 comment on commit cdf86cf

@nathansbradshaw
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this what was causing the audio issues?

Please sign in to comment.