clean up
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user