1
0
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:
Marian Buschsieweke 2022-02-13 11:41:42 +01:00 committed by GitHub
commit ec0df56b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;