nvs_util: Fix multipage blob data format generate

pull/2479/head
Shivani Tipnis 2018-09-24 14:43:26 +05:30
rodzic 4d50427e87
commit 7c1360b10a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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: