1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-28 16:21:03 +00:00

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

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];