From 00ccf6a8ce4e460230b44b552f5a7a55dc251064 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 1 Apr 2015 19:43:36 +0200 Subject: [PATCH] bump storage version --- firmware/storage.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/storage.c b/firmware/storage.c index 5718247c2a..94470331e2 100644 --- a/firmware/storage.c +++ b/firmware/storage.c @@ -62,7 +62,7 @@ static char sessionPassphrase[51]; 0x0010 | ? | Storage structure */ -#define STORAGE_VERSION 4 +#define STORAGE_VERSION 5 void storage_from_flash(uint32_t version) { @@ -79,6 +79,9 @@ void storage_from_flash(uint32_t version) case 4: // copy (since 1.3.2) memcpy(&storage, (void *)(FLASH_STORAGE_START + 4 + sizeof(storage_uuid)), sizeof(Storage)); break; + case 5: // copy (since 1.3.3) + memcpy(&storage, (void *)(FLASH_STORAGE_START + 4 + sizeof(storage_uuid)), sizeof(Storage)); + break; } storage.version = STORAGE_VERSION; }