This commit is contained in:
2024-09-27 19:55:16 +02:00
parent a1a5156caf
commit ea35221d41
4 changed files with 13 additions and 17 deletions

View File

@ -324,12 +324,12 @@ mod app {
let mut buf = [0u8; 4];
cx.local
.nvm
.read(base_addr + 32, &mut buf)
.read(base_addr as usize + 32, &mut buf)
.expect("reading from NVM failed");
buf[0] += 1;
cx.local
.nvm
.write(base_addr + 32, &buf)
.write(base_addr as usize + 32, &buf)
.expect("writing to NVM failed");
let tm = cx
.local
@ -405,7 +405,7 @@ mod app {
);
cx.local
.nvm
.write(offset, data)
.write(offset as usize, data)
.expect("writing to NVM failed");
let tm = cx
.local