mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-02 14:44:32 +00:00
make API more consistent
This commit is contained in:
parent
aa951e7fd6
commit
437e45df2b
@ -152,7 +152,7 @@ impl<'d> Flash<'d, Blocking> {
|
||||
/// Writes a byte slice to EEPROM at the given offset, handling alignment.
|
||||
///
|
||||
/// This method will write unaligned prefix and suffix as bytes, and aligned middle as u32.
|
||||
pub fn eeprom_write(&mut self, offset: u32, data: &[u8]) -> Result<(), Error> {
|
||||
pub fn eeprom_write_slice(&mut self, offset: u32, data: &[u8]) -> Result<(), Error> {
|
||||
self.check_eeprom_offset(offset, data.len() as u32)?;
|
||||
let start = offset;
|
||||
let misalign = (start % 4) as usize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user