Increase buffer allocation during flush
Resolves https://github.com/lvgl/lvgl_esp32_drivers/issues/116
This commit is contained in:
parent
26fe6e7703
commit
52a1017ce3
|
@ -118,7 +118,7 @@ void ili9488_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * col
|
|||
lv_color16_t *buffer_16bit = (lv_color16_t *) color_map;
|
||||
uint8_t *mybuf;
|
||||
do {
|
||||
mybuf = (uint8_t *) heap_caps_malloc(3 * size * sizeof(uint8_t), MALLOC_CAP_DMA);
|
||||
mybuf = (uint8_t *) heap_caps_malloc(3 * size * sizeof(uint8_t) + 3, MALLOC_CAP_DMA);
|
||||
if (mybuf == NULL) ESP_LOGW(TAG, "Could not allocate enough DMA memory!");
|
||||
} while (mybuf == NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue