Skip to content

Commit 679b15a

Browse files
committed
Now give the function a word offset like it expects instead of a byte offset
1 parent 54c6586 commit 679b15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nrf-hal-common/src/nvmc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ where
8787
#[cfg(any(feature = "9160", feature = "5340-app"))]
8888
#[inline]
8989
fn erase_page(&mut self, page_offset: usize) {
90-
self.direct_write_word(page_offset * PAGE_SIZE, 0xffffffff);
90+
self.direct_write_word(page_offset * PAGE_SIZE / WORD_SIZE, 0xffffffff);
9191
self.wait_ready();
9292
}
9393

0 commit comments

Comments
 (0)