mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-02 15:19:30 +01:00
NVS: bugfix - iterator skipping version 1 blobs
Closes https://github.com/espressif/esp-idf/issues/4954
This commit is contained in:
@@ -763,7 +763,9 @@ inline bool isIterableItem(Item& item)
|
||||
|
||||
inline bool isMultipageBlob(Item& item)
|
||||
{
|
||||
return (item.datatype == ItemType::BLOB_DATA && item.chunkIndex != 0);
|
||||
return (item.datatype == ItemType::BLOB_DATA &&
|
||||
!(item.chunkIndex == static_cast<uint8_t>(VerOffset::VER_0_OFFSET)
|
||||
|| item.chunkIndex == static_cast<uint8_t>(VerOffset::VER_1_OFFSET)));
|
||||
}
|
||||
|
||||
bool Storage::nextEntry(nvs_opaque_iterator_t* it)
|
||||
|
||||
Reference in New Issue
Block a user