We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 104deaa commit 30cc160Copy full SHA for 30cc160
1 file changed
ports/zephyr/zephyr_storage.c
@@ -188,7 +188,7 @@ MP_DEFINE_CONST_OBJ_TYPE(
188
// Note: Some flash controllers have erase-block-size, others (like QSPI NOR) don't
189
// For devices without this property, use 4096 as a common default for NOR flash
190
#define FLASH_AREA_GET_ERASE_SIZE(part) \
191
- DT_PROP_OR(DT_MTD_FROM_FIXED_PARTITION(part), erase_block_size, 4096)
+ DT_PROP_OR(DT_GPARENT(part), erase_block_size, 4096)
192
193
// Create a static tuple for each partition containing (id, erase_block_size)
194
#define FLASH_AREA_DEFINE_TUPLE(part) \
0 commit comments