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

tests/pkg/flashdb_fal_cfg: abort test if no MTD device is configured

This commit is contained in:
Benjamin Valentin 2024-02-23 13:17:12 +01:00
parent db2d5f385d
commit 82aac9c761

View File

@ -103,6 +103,11 @@ static fdb_time_t _get_time(void)
int main(void)
{
if (FDB_MTD == NULL) {
puts("No MTD device configured for test, abort.");
return -1;
}
int init_failed;
fdb_mtd_init(FDB_MTD);
size_t size = FDB_MTD->pages_per_sector * FDB_MTD->page_size;