We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34a2d1d commit 600b480Copy full SHA for 600b480
firmware/CMakeLists.txt
@@ -39,10 +39,10 @@ if(FLASH_MB_SIZE LESS FLASH_MB_LIMIT_SIZE)
39
message(FATAL_ERROR "Error: The supported flash size is lower than the generated flash file. Build halted.")
40
endif()
41
42
-if(NOT DEFINED FLASH_MB_SIZE)
+if(NOT DEFINED FLASH_BYTES_SIZE)
43
math(EXPR FLASH_BYTES_SIZE "${FLASH_MB_SIZE} * 1024 * 1024")
44
45
-if(NOT DEFINED FLASH_MB_LIMIT_SIZE)
+if(NOT DEFINED FLASH_BYTES_LIMIT_SIZE)
46
math(EXPR FLASH_BYTES_LIMIT_SIZE "${FLASH_MB_LIMIT_SIZE} * 1024 * 1024")
47
48
0 commit comments