Skip to content

Commit b3abb94

Browse files
authored
Merge pull request #2 from tgross35/patch-1
Update template to match new trait signature
2 parents 7e2b421 + 633e72d commit b3abb94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ impl FlashAlgorithm for Algorithm {
3939
Ok(())
4040
}
4141

42-
fn program_page(&mut self, addr: u32, size: u32, _data: *const u8) -> Result<(), ErrorCode> {
43-
rprintln!("Program Page addr:{} size:{}", addr, size);
42+
fn program_page(&mut self, addr: u32, data: &[u8]) -> Result<(), ErrorCode> {
43+
rprintln!("Program Page addr:{} size:{}", addr, data.len());
4444
// TODO: Add code here that writes a page to flash.
4545
Ok(())
4646
}

0 commit comments

Comments
 (0)