]> granicus.if.org Git - esp-idf/commitdiff
nvs_util: Fix multipage blob data format generate
authorShivani Tipnis <shivani@espressif.com>
Mon, 24 Sep 2018 09:13:26 +0000 (14:43 +0530)
committerShivani Tipnis <shivani@espressif.com>
Mon, 24 Sep 2018 10:14:31 +0000 (15:44 +0530)
components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py

index 4446d084fc8118ada6c19510a8c4e646ac7b0336..5e237b209861858b059767f2e8d65fb3f045042b 100755 (executable)
@@ -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: