aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/flash/eeprom.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/flash/eeprom.rs b/embassy-stm32/src/flash/eeprom.rs
index 99c6b9c10..5bccb2ecc 100644
--- a/embassy-stm32/src/flash/eeprom.rs
+++ b/embassy-stm32/src/flash/eeprom.rs
@@ -152,7 +152,7 @@ impl<'d> Flash<'d, Blocking> {
152 /// Writes a byte slice to EEPROM at the given offset, handling alignment. 152 /// Writes a byte slice to EEPROM at the given offset, handling alignment.
153 /// 153 ///
154 /// This method will write unaligned prefix and suffix as bytes, and aligned middle as u32. 154 /// This method will write unaligned prefix and suffix as bytes, and aligned middle as u32.
155 pub fn eeprom_write(&mut self, offset: u32, data: &[u8]) -> Result<(), Error> { 155 pub fn eeprom_write_slice(&mut self, offset: u32, data: &[u8]) -> Result<(), Error> {
156 self.check_eeprom_offset(offset, data.len() as u32)?; 156 self.check_eeprom_offset(offset, data.len() as u32)?;
157 let start = offset; 157 let start = offset;
158 let misalign = (start % 4) as usize; 158 let misalign = (start % 4) as usize;