From: Shivani Tipnis Date: Mon, 24 Sep 2018 09:13:26 +0000 (+0530) Subject: nvs_util: Fix multipage blob data format generate X-Git-Tag: v3.2-beta1~117^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c1360b10aef9a77314d1c22400be15a5af7eb68;p=esp-idf nvs_util: Fix multipage blob data format generate --- 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 4446d084fc..5e237b2098 100755 --- a/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py +++ b/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py @@ -285,7 +285,7 @@ class Page(object): elif encoding in ["hex2bin", "binary", "base64"]: entry_struct[1] = Page.BLOB - if version == Page.VERSION2 and encoding == "binary" or encoding == "hex2bin" or encoding == "base64": + if version == Page.VERSION2 and (encoding in ["hex2bin", "binary", "base64"]): entry_struct = self.write_varlen_binary_data(entry_struct,ns_index,key,data,\ datalen,total_entry_count, nvs_obj) else: