Skip to content

Commit 4c01f03

Browse files
committed
stm32: do not use private constructor
1 parent 17301c0 commit 4c01f03

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)