1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/periph_flashpage: fix conditional compilation

This commit is contained in:
Kaspar Schleiser 2022-02-12 22:41:12 +01:00
parent 25882133f8
commit 806e7dee9a

View File

@ -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;