mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-25 16:08:32 +00:00
bump storage version
This commit is contained in:
parent
8b268692fe
commit
00ccf6a8ce
@ -62,7 +62,7 @@ static char sessionPassphrase[51];
|
|||||||
0x0010 | ? | Storage structure
|
0x0010 | ? | Storage structure
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define STORAGE_VERSION 4
|
#define STORAGE_VERSION 5
|
||||||
|
|
||||||
void storage_from_flash(uint32_t version)
|
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)
|
case 4: // copy (since 1.3.2)
|
||||||
memcpy(&storage, (void *)(FLASH_STORAGE_START + 4 + sizeof(storage_uuid)), sizeof(Storage));
|
memcpy(&storage, (void *)(FLASH_STORAGE_START + 4 + sizeof(storage_uuid)), sizeof(Storage));
|
||||||
break;
|
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;
|
storage.version = STORAGE_VERSION;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user