aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorokhsunrog <[email protected]>2025-05-21 09:44:28 +0300
committerokhsunrog <[email protected]>2025-05-21 09:44:28 +0300
commit437e45df2b468caf13475ffaf3d55cc4f01e2d6b (patch)
tree29a5189e9786e1d955f42f4324f2e11075193c22
parentaa951e7fd67901473cdcd4926ef81c3e9f6da805 (diff)
make API more consistent
-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;