diff options
| -rw-r--r-- | embassy-stm32/src/sai/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/sai/mod.rs b/embassy-stm32/src/sai/mod.rs index 0dc8b62d0..39ed44712 100644 --- a/embassy-stm32/src/sai/mod.rs +++ b/embassy-stm32/src/sai/mod.rs | |||
| @@ -936,7 +936,7 @@ impl<'d, T: Instance, W: word::Word> Sai<'d, T, W> { | |||
| 936 | w.set_nbslot(config.slot_count.0 as u8 - 1); | 936 | w.set_nbslot(config.slot_count.0 as u8 - 1); |
| 937 | w.set_slotsz(config.slot_size.slotsz()); | 937 | w.set_slotsz(config.slot_size.slotsz()); |
| 938 | w.set_fboff(config.first_bit_offset.0 as u8); | 938 | 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)); |
| 940 | }); | 940 | }); |
| 941 | 941 | ||
| 942 | ch.cr1().modify(|w| w.set_saien(true)); | 942 | ch.cr1().modify(|w| w.set_saien(true)); |
