1
0
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:
Benjamin Valentin 2024-02-23 13:16:55 +01:00
parent d83ec632e3
commit db2d5f385d

View File

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