mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 13:44:32 +02:00
Add nvs part gen utility multi page blob support update
This commit is contained in:
@@ -127,8 +127,8 @@ class Page(object):
|
|||||||
chunk_size = 0
|
chunk_size = 0
|
||||||
|
|
||||||
# Get the size available in current page
|
# Get the size available in current page
|
||||||
if self.entry_num < (Page.PAGE_PARAMS["max_entries"] - 1):
|
tailroom = (Page.PAGE_PARAMS["max_entries"] - self.entry_num - 1) * Page.SINGLE_ENTRY_SIZE
|
||||||
tailroom = (Page.PAGE_PARAMS["max_entries"] - self.entry_num - 1) * Page.SINGLE_ENTRY_SIZE
|
assert tailroom >=0, "Page overflow!!"
|
||||||
|
|
||||||
# Split the binary data into two and store a chunk of available size onto curr page
|
# Split the binary data into two and store a chunk of available size onto curr page
|
||||||
if tailroom < remaining_size:
|
if tailroom < remaining_size:
|
||||||
|
Reference in New Issue
Block a user