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

storage: bump version

This commit is contained in:
Pavol Rusnak 2017-07-31 22:43:28 +02:00
parent ace1d84265
commit f0d2e7a371
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -102,7 +102,7 @@ static bool sessionPinCached;
static bool sessionPassphraseCached; static bool sessionPassphraseCached;
static char sessionPassphrase[51]; static char sessionPassphrase[51];
#define STORAGE_VERSION 6 #define STORAGE_VERSION 7
void storage_show_error(void) void storage_show_error(void)
{ {
@ -132,6 +132,7 @@ bool storage_from_flash(void)
// version 4: since 1.3.2 // version 4: since 1.3.2
// version 5: since 1.3.3 // version 5: since 1.3.3
// version 6: since 1.3.6 // version 6: since 1.3.6
// version 7: since 1.5.1
if (version > STORAGE_VERSION) { if (version > STORAGE_VERSION) {
// downgrade -> clear storage // downgrade -> clear storage
return false; return false;