mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/flashbd: assert presence of MTD device
This commit is contained in:
parent
d83ec632e3
commit
db2d5f385d
@ -74,6 +74,8 @@ struct fal_flash_dev mtd_flash0 = {
|
||||
|
||||
void fdb_mtd_init(mtd_dev_t *mtd)
|
||||
{
|
||||
assert(mtd);
|
||||
|
||||
unsigned sector_size;
|
||||
if (_mtd) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user