Skip to content

Commit

Permalink
bump storage version: 14
Browse files Browse the repository at this point in the history
  • Loading branch information
keepkeyjon committed Dec 17, 2019
1 parent 75d6ec8 commit 3620d02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/keepkey/firmware/storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "trezor/crypto/bip32.h"
#include "keepkey/board/memory.h"

#define STORAGE_VERSION 13 /* Must add case fallthrough in storage_fromFlash after increment*/
#define STORAGE_VERSION 14 /* Must add case fallthrough in storage_fromFlash after increment*/
#define STORAGE_RETRIES 3

#define STORAGE_DEFAULT_SCREENSAVER_TIMEOUT (10U * 60U * 1000U) /* 10 minutes */
Expand Down
1 change: 1 addition & 0 deletions lib/firmware/storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ StorageUpdateStatus storage_fromFlash(SessionState *ss, ConfigFlash *dst, const
case StorageVersion_11:
case StorageVersion_12:
case StorageVersion_13:
case StorageVersion_14:
storage_readV11(dst, flash, STORAGE_SECTOR_LEN);
dst->storage.version = STORAGE_VERSION;
return dst->storage.version == version
Expand Down
3 changes: 2 additions & 1 deletion lib/firmware/storage_versions.inc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ STORAGE_VERSION_ENTRY(9)
STORAGE_VERSION_ENTRY(10)
STORAGE_VERSION_ENTRY(11)
STORAGE_VERSION_ENTRY(12)
STORAGE_VERSION_LAST(13)
STORAGE_VERSION_ENTRY(13)
STORAGE_VERSION_LAST(14)

#undef STORAGE_VERSION_ENTRY
#undef STORAGE_VERSION_LAST

0 comments on commit 3620d02

Please sign in to comment.