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:
parent
db2d5f385d
commit
82aac9c761
@ -103,6 +103,11 @@ static fdb_time_t _get_time(void)
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
if (FDB_MTD == NULL) {
|
||||||
|
puts("No MTD device configured for test, abort.");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
int init_failed;
|
int init_failed;
|
||||||
fdb_mtd_init(FDB_MTD);
|
fdb_mtd_init(FDB_MTD);
|
||||||
size_t size = FDB_MTD->pages_per_sector * FDB_MTD->page_size;
|
size_t size = FDB_MTD->pages_per_sector * FDB_MTD->page_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user