sfdp_iterate_next_largest_erase_type: do not modify type_mask
The supported erase types of a given flash region are indicated in bitfields of the variable `type_mask`. Even if an erase type is unused for the current chunk (e.g. size too large, unaligned, etc.), its bitfield should NOT be cleared - the same erase type might actually be useful for the next chunk. The function argument is now a value instead of a reference. |
---|
|
drivers/include/drivers/internal/SFDP.h |
---|
drivers/source/SFDP.cpp |
---|