Ensure mem_max_size is only used on non custom mem (#1588)
This commit is contained in:
@@ -85,7 +85,10 @@ typedef struct {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static uint32_t zero_mem; /*Give the address of this variable if 0 byte should be allocated*/
|
static uint32_t zero_mem; /*Give the address of this variable if 0 byte should be allocated*/
|
||||||
|
|
||||||
|
#if LV_MEM_CUSTOM == 0
|
||||||
static uint32_t mem_max_size; /*Tracks the maximum total size of memory ever used from the internal heap*/
|
static uint32_t mem_max_size; /*Tracks the maximum total size of memory ever used from the internal heap*/
|
||||||
|
#endif
|
||||||
|
|
||||||
static uint8_t mem_buf1_32[MEM_BUF_SMALL_SIZE];
|
static uint8_t mem_buf1_32[MEM_BUF_SMALL_SIZE];
|
||||||
static uint8_t mem_buf2_32[MEM_BUF_SMALL_SIZE];
|
static uint8_t mem_buf2_32[MEM_BUF_SMALL_SIZE];
|
||||||
|
|||||||
Reference in New Issue
Block a user