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; }