Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
deroo
Nano33BLE-flash
Commits
10dd5300
Commit
10dd5300
authored
Aug 20, 2021
by
deroo
Browse files
promote arg of flashErase() from byte to int
parent
760556fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Nano33BLEflash.cpp
View file @
10dd5300
...
...
@@ -36,7 +36,7 @@ void flashMode(_flashModeEnum mode)
}
//int Nano33BLEflash::erase(byte page)
int
flashErasePage
(
byte
page
)
int
flashErasePage
(
int
page
)
{
/*
* Function erases the page given by the input parameter page.
...
...
src/Nano33BLEflash.h
View file @
10dd5300
...
...
@@ -59,7 +59,7 @@ const unsigned int flashBytesPerWord = 4;
const
unsigned
int
flashNumberOfPages
=
NRF_FICR
->
CODESIZE
;
// 256 pages
void
flashMode
(
_flashModeEnum
mode
);
int
flashErasePage
(
byte
page
);
int
flashErasePage
(
int
page
);
void
_wait4flash2Bready
(
void
);
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment