mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #17646 from kaspar030/tests_periph_flashpage_pagemem
tests/periph_flashpage: fix conditional compilation
This commit is contained in:
commit
ec0df56b67
@ -67,7 +67,7 @@ static int getpage(const char *str)
|
||||
return page;
|
||||
}
|
||||
|
||||
#ifdef FLASHPAGE_SIZE
|
||||
#ifdef MODULE_PERIPH_FLASHPAGE_PAGEWISE
|
||||
static void dumpchar(uint8_t mem)
|
||||
{
|
||||
if (mem >= ' ' && mem <= '~') {
|
||||
@ -131,7 +131,7 @@ static int cmd_info(int argc, char **argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef FLASHPAGE_SIZE
|
||||
#ifdef MODULE_PERIPH_FLASHPAGE_PAGEWISE
|
||||
static int cmd_dump(int argc, char **argv)
|
||||
{
|
||||
int page;
|
||||
@ -271,7 +271,7 @@ static int cmd_erase(int argc, char **argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef FLASHPAGE_SIZE
|
||||
#ifdef MODULE_PERIPH_FLASHPAGE_PAGEWISE
|
||||
static int cmd_edit(int argc, char **argv)
|
||||
{
|
||||
int offset;
|
||||
@ -297,9 +297,7 @@ static int cmd_edit(int argc, char **argv)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef MODULE_PERIPH_FLASHPAGE_PAGEWISE
|
||||
static int cmd_test(int argc, char **argv)
|
||||
{
|
||||
int page;
|
||||
|
Loading…
Reference in New Issue
Block a user