Skip to content

Commit 0edd45e

Browse files
authored
Merge pull request #3931 from hvraven/stm32-sai-fix
stm32: do not use private constructor
2 parents 7650948 + 4c01f03 commit 0edd45e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

embassy-stm32/src/sai/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ impl<'d, T: Instance, W: word::Word> Sai<'d, T, W> {
936936
w.set_nbslot(config.slot_count.0 as u8 - 1);
937937
w.set_slotsz(config.slot_size.slotsz());
938938
w.set_fboff(config.first_bit_offset.0 as u8);
939-
w.set_sloten(vals::Sloten(config.slot_enable as u16));
939+
w.set_sloten(vals::Sloten::from_bits(config.slot_enable as u16));
940940
});
941941

942942
ch.cr1().modify(|w| w.set_saien(true));

0 commit comments

Comments
 (0)