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.
ls
1 parent 7525134 commit ac86aff928a7ca792b6996609500076dbfa93dc2
@Lingkai Dong Lingkai Dong authored on 24 Nov 2020
Showing 2 changed files
View
drivers/include/drivers/internal/SFDP.h
View
drivers/source/SFDP.cpp