mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-28 16:01:18 +01:00
tests/pkg_tinyvcdiff: Initialize mtd->write_size
An assert `assert(mtd->write_size != 0);` is being hit. It seems that initializing this to 1 in the fakemtd fixes it. Not that I know anything about what it should be.
This commit is contained in:
parent
2c9e853aae
commit
c43116a84f
@ -65,7 +65,8 @@ typedef struct {
|
||||
#define FAKE_MTD_INIT { .mtd = { .driver = &fake_mtd_driver, \
|
||||
.sector_count = FAKE_MTD_SECTOR_COUNT, \
|
||||
.pages_per_sector = FAKE_MTD_PAGES_PER_SECTOR, \
|
||||
.page_size = FAKE_MTD_PAGE_SIZE } }
|
||||
.page_size = FAKE_MTD_PAGE_SIZE, \
|
||||
.write_size = 1 } }
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user