bump storage version

pull/25/head
Pavol Rusnak 9 years ago
parent 8b268692fe
commit 00ccf6a8ce

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

Loading…
Cancel
Save