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

fix(core): resolve static_assert error on macos compiler

[no changelog]
This commit is contained in:
cepetr 2024-10-02 17:43:58 +02:00 committed by cepetr
parent 3036d524a6
commit 0ebc82728b

View File

@ -26,7 +26,9 @@
#include "image.h" #include "image.h"
#include "model.h" #include "model.h"
_Static_assert(VENDOR_HEADER_MAX_SIZE + IMAGE_HEADER_SIZE <= IMAGE_CHUNK_SIZE); _Static_assert(VENDOR_HEADER_MAX_SIZE + IMAGE_HEADER_SIZE <= IMAGE_CHUNK_SIZE,
"The size of the firmware headers must be less than or equal to "
"IMAGE_CHUNK_SIZE");
const uint8_t BOOTLOADER_KEY_M = 2; const uint8_t BOOTLOADER_KEY_M = 2;
const uint8_t BOOTLOADER_KEY_N = 3; const uint8_t BOOTLOADER_KEY_N = 3;