mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
btstack_tlv_flash_bank: fix validation for full flash bank
This commit is contained in:
parent
b50405356d
commit
e195acfc18
@ -500,7 +500,7 @@ const btstack_tlv_t * btstack_tlv_flash_bank_init_instance(btstack_tlv_flash_ban
|
|||||||
}
|
}
|
||||||
self->write_offset = it.offset;
|
self->write_offset = it.offset;
|
||||||
|
|
||||||
if (self->write_offset < self->hal_flash_bank_impl->get_size(self->hal_flash_bank_context)){
|
if (self->write_offset <= self->hal_flash_bank_impl->get_size(self->hal_flash_bank_context)){
|
||||||
|
|
||||||
#ifndef ENABLE_TLV_FLASH_WRITE_ONCE
|
#ifndef ENABLE_TLV_FLASH_WRITE_ONCE
|
||||||
// delete older instances of last_tag
|
// delete older instances of last_tag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user