Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
storage: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak committed Jul 31, 2017
1 parent ace1d84 commit f0d2e7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/storage.c
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f0d2e7a

Please sign in to comment.