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
1 changed files with 2 additions and 1 deletions

View File

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