1
0
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:
MrKevinWeiss 2022-08-30 11:36:35 +02:00
parent 2c9e853aae
commit c43116a84f
No known key found for this signature in database
GPG Key ID: 4B69974722CBEEAE

View File

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