From 5ce40fce0c0a9430d1560677ff7081170f951e39 Mon Sep 17 00:00:00 2001 From: Shivani Tipnis Date: Thu, 9 Aug 2018 15:49:07 +0530 Subject: [PATCH] Add nvs part gen utility multi page blob support update --- .../nvs_flash/nvs_partition_generator/nvs_partition_gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py b/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py index 6a51e54d9b..429b044ef2 100755 --- a/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py +++ b/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py @@ -127,8 +127,8 @@ class Page(object): chunk_size = 0 # 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 if tailroom < remaining_size: