mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
btstack_tlv_flash_bank: store aligned entry header len
This commit is contained in:
parent
9b112178fd
commit
f268b03a0a
@ -487,6 +487,9 @@ const btstack_tlv_t * btstack_tlv_flash_bank_init_instance(btstack_tlv_flash_ban
|
|||||||
log_info("delete tag len %u", self->delete_tag_len);
|
log_info("delete tag len %u", self->delete_tag_len);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// set aligned entry header len
|
||||||
|
self->entry_header_len = btstack_tlv_flash_bank_align_size(self, BTSTACK_TLV_ENTRY_HEADER_LEN);
|
||||||
|
|
||||||
// try to find current bank
|
// try to find current bank
|
||||||
self->current_bank = btstack_tlv_flash_bank_get_latest_bank(self);
|
self->current_bank = btstack_tlv_flash_bank_get_latest_bank(self);
|
||||||
log_info("found bank %d", self->current_bank);
|
log_info("found bank %d", self->current_bank);
|
||||||
|
@ -52,7 +52,8 @@ typedef struct {
|
|||||||
void * hal_flash_bank_context;
|
void * hal_flash_bank_context;
|
||||||
uint32_t write_offset;
|
uint32_t write_offset;
|
||||||
int8_t current_bank;
|
int8_t current_bank;
|
||||||
uint8_t delete_tag_len;
|
uint16_t delete_tag_len;
|
||||||
|
uint16_t entry_header_len;
|
||||||
} btstack_tlv_flash_bank_t;
|
} btstack_tlv_flash_bank_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user