]> granicus.if.org Git - esp-idf/commitdiff
nvs_flash: Bump up nvs version
authorSagar Bijwe <sagar@espressif.com>
Wed, 25 Jul 2018 13:25:05 +0000 (18:55 +0530)
committerbot <bot@espressif.com>
Sun, 5 Aug 2018 00:00:56 +0000 (00:00 +0000)
components/nvs_flash/src/nvs_page.hpp

index ae803dede696740bb402d4eeafbedba5077c1dd2..f6f6a8ac6075dd1924ccda3c9bdc23e3d483086e 100644 (file)
@@ -53,6 +53,8 @@ public:
 
     static const uint8_t CHUNK_ANY = Item::CHUNK_ANY;
 
+    static const uint8_t NVS_VERSION = 0xfe; // Decrement to upgrade
+
     enum class PageState : uint32_t {
         // All bits set, default state after flash erase. Page has not been initialized yet.
         UNINITIALIZED = 0xffffffff,