Merge pull request #44 from romanz/master

storage: add compile-time assert for sizeof(Storage) validation
This commit is contained in:
Pavol Rusnak 2015-09-06 23:36:38 +02:00
commit 7cd63ac53d
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@
#include "protect.h"
#include "layout2.h"
_Static_assert(sizeof(Storage) <= FLASH_STORAGE_LEN, "Storage struct is too large for TREZOR flash");
Storage storage;
uint8_t storage_uuid[12];