1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

bump storage version

This commit is contained in:
Pavol Rusnak 2015-04-01 19:43:36 +02:00
parent 8b268692fe
commit 00ccf6a8ce

View File

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