mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9241 from davidsaada/david_tdbstore_variant_erase_unit_fix
TDBStore: fix bug in sector blank check for variant sized sectorspull/9289/head
commit
42fee4502d
|
@ -1409,7 +1409,7 @@ void TDBStore::offset_in_erase_unit(uint8_t area, uint32_t offset,
|
|||
}
|
||||
|
||||
uint32_t agg_offset = 0;
|
||||
while (bd_offset < agg_offset + _buff_bd->get_erase_size(agg_offset)) {
|
||||
while (bd_offset >= agg_offset + _buff_bd->get_erase_size(agg_offset)) {
|
||||
agg_offset += _buff_bd->get_erase_size(agg_offset);
|
||||
}
|
||||
offset_from_start = bd_offset - agg_offset;
|
||||
|
|
Loading…
Reference in New Issue